[Haskell-beginners] case in monadic function

Kovacs David 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
> http://www.haskell.org/mailman/listinfo/beginners
>   
It looks like this:
data SemanticResult = Ok | Error String;



More information about the Beginners mailing list