[Haskell-cafe] class Bytestringable or ToBytestring
Silvio Frischknecht
silvio.frischi at gmail.com
Fri Nov 23 09:19:29 CET 2012
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
More information about the Haskell-Cafe
mailing list