haskell optimiziations

Signed-off-by: Michael Karg <mgoremeier@gmail.com>
Merge pull request #19 from mgmeier/haskell-opt

haskell optimiziations