[Haskell-cafe] Data declaration vs type classes

Imants Cekusins imantc at gmail.com
Fri Jan 8 11:46:57 UTC 2016


> you convert String or Text: what encoding would you use?

let's say, this is very specific conversion where newtypes are used a
lot. There are many different formats for Int (even the same type of
int), String may be ascii, UTF8, ISO-..., you name it.

using class does not make a difference re: type definition in this case.


More information about the Haskell-Cafe mailing list