[Haskell-beginners] case in monadic function
davidkovaccs at gmail.com
Fri Jan 23 11:04:18 EST 2009
Daniel Schoepe wrote:
> Daniel Schoepe wrote:
>> You can use liftM/fmap to lift a function into a monad:
>> case (checkPredName pn . snd) `fmap` get of ...
> I'm sorry, I misunderstood the problem, so this suggestion wouldn't work
> either. Could you give some more information on what SemanticResult is?
> Beginners mailing list
> Beginners at haskell.org
It looks like this:
data SemanticResult = Ok | Error String;
More information about the Beginners