byorgey.wordpress.com
Deducing code from types: filterM
The other day in #haskell a few people were trying to figure out how to generate the list of all sublists of a given list. Various people tried various kludgy things involving inits and tails and c…