I am reading "What I Wish I Knew When Learning Haskell", and on page 72 there is this statement:
The first law is that when
return ais passed through(>>=)into a functionf, this expression is exactly equivalent tof.
So I am trying to do this:
return 3 >>= (+ 1)
and I get
No instance for (Num (m0 b0)) arising from a use of ‘it’
In a stmt of an interactive GHCi command: print it
What am I doing wrong?