Hi, I added documentation to your code so people new to Haskell might understand what is going on:
https://gist.github.com/4105864
Even with extensive documentation it is only 3 lines longer than the Go version ;)
https://gist.github.com/4105864
Even with extensive documentation it is only 3 lines longer than the Go version ;)