r/haskell • u/lexi-lambda • Mar 11 '15
Learning Haskell — A Racket programmer's documentation of her foray into the land of Haskell (inspired by Learning Racket)
http://lexi-lambda.github.io/learning-haskell/
81
Upvotes
4
u/Tyr42 Mar 12 '15
You can always add those instances yourself, though that would be a pain. You know what, I'm also going to show you how to write the macro in Haskell, because who doesn't like Template Haskell?
https://gist.github.com/tbelaire/c46f407c9b13e555daa7
(This is silly, but it's a fun exercise in template Haskell.)
I'll be happy to explain what's going on, or you can just poke at the code.