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

Attachment: StringLike.hs
Description: Binary data

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to