[Haskell-beginners] Point free mystery

Marcin Mrotek marcin.jan.mrotek at gmail.com
Thu Apr 16 19:48:52 UTC 2015


Hello,

Well, writing out all top-level types is generally considered good
style amongst Haskell community, as far as I know. But whenever you
get weird type errors on unannotated toplevel functions, try

{-# LANGUAGE NoMonomorphismRestriction #-}

at the beginning of the soruce file, just as Brandon Allbery (sort of)
said, and see https://wiki.haskell.org/Monomorphism_restriction for
the explanation.

Best regards,
Marcin Mrotek


More information about the Beginners mailing list