[Haskell-cafe] Backpack vs plain old classes and instances

Silvio Frischknecht silvio.frischi at gmail.com
Thu Jul 19 06:20:00 UTC 2018


Hi

It seems similar to the modules system of ML. As I understand it, the
main difference to Haskell type classes is that you have to specify
instances explicitly in in this system. This means you get more control
at the expense of more code.

Have a look at this example on stackoverflow.

https://stackoverflow.com/a/36927542/1117884

Cheers

Silvio



More information about the Haskell-Cafe mailing list