Ahh, summer! A time for backyard barbeques, ice cold beer, baseball games, and
playing with experimental Haskell type system extensions. Or in my case, just
the latter. In this article I'll show you how to compute factorials using
Haskell's type system, i.e. at compile time.
Why would we want to do this? you may well ask. The real reason is
(
Read more... )
Comments 5
Reply
http://www.mail-archive.com/haskell-cafe@haskell.org/msg00692.html
I used the factorial to give a precise type to permutations, which I hope isn't entirely useless.
All the best
Conor
Reply
I guess nothing in Haskell is ever completely useless ;-) Thanks for the link, I'll check it out!
Reply
Reply
Reply
Leave a comment