
5 Aug
2009
5 Aug
'09
7:24 a.m.
Hello It seems like a very common issue to have an API like: foo :: String -> Foo fooBS :: ByteString -> Foo fooLBS:: L.ByteString -> Foo is there currently a library that makes unifying them easy? Below is attached one try at this, does it make sense? I'm thinking of uploading it to Hackage but would like comments first. With the library the above code is transformed into: foo :: StringLike string => string -> Foo - Taru Karttunen