i recently found the convertible package http://hackage.haskell.org/packages/archive/convertible/1.0.11.1/doc/html/Data- Convertible-Base.html
convert :: Convertible a b => a -> b I've only used it once but it looks good to me. sure the type checker does not guartantee that you get a ByteString back but if you only use your own types where you write all the instances yourself you should be safe. silvio _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe