Run HLint as Cabal test
Added doctests