Fun with Dependent Types in Haskell
alfredodinapoli.com
alfredodinapoli.com
So I'll have to disagree with your characterization of it as a toy. It takes a technique that's been known in Haskell for a while and makes it more accessible and useable to the casual Haskell programmer. And while this blog post was a nice introductory treatment of that technique, that's all it is. The examples in the blog post are far from practical applications.
Cool! Is there an example of this? I poked around the repo and reddit/HN posts on it, but couldn't find anything...
http://stackoverflow.com/questions/26027765/using-types-to-p...
So, that propellor, my configuration management system written and configured in haskell, will reject at compile time configurations for systems where there would be a port conflict amoung the configured services. Which is ever so much nicer than noticing that at runtime.
Still wrapping my head fully around dependent types, but the community's great, to the extent of writing the code for me when I ask a simple question. ;)
Just because we can't make things perfect is no reason not to make things better.