
8 May
2015
8 May
'15
2:25 p.m.
Hi, I've imported the State monad module and used in the 'pop' function that will pop the head out of the list but am getting error in GHCi. ----- import Control.Monad.State let pop = State $ \(x:xs) -> (x,xs) <interactive>:73:11: Not in scope: data constructor ‘State’ Perhaps you meant ‘StateT’ (imported from Control.Monad.State) ----- Please can anyone point out what the issue is here? Thanks, Shishir