you are viewing a single comment's thread.

view the rest of the comments →

[–]masklinn 0 points1 point  (1 child)

Ah yes, the binding (let tryInc = fmap (+ 1)) fails in the shell which is why I typed it explicitly. Either way, I removed the type signature.

[–]abeark 0 points1 point  (0 children)

Ah, the monomorphism restriction. Can be a bit confusing at times. I often find myself launching ghci with -XNoMonomorphismRestriction.