
23 Nov
2012
23 Nov
'12
8:19 a.m.
i recently found the convertible package http://hackage.haskell.org/packages/archive/convertible/1.0.11.1/doc/html/Da... 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