
16 Apr
2015
16 Apr
'15
3:48 p.m.
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