from various sources including O'Reilly "Real World Haskell" by Sullivan, Goerzen and Stewart
but the MUCH better source: http://learnyouahaskell.com/chapters
Also from Elements of Functional Programming by Reade , trying Haskell vs SML solutions side by side at the beginning