[Haskell-beginners] How to extract from Maybe & Either in GHCi

blackcat at pro-ns.net blackcat at pro-ns.net
Thu Apr 14 00:52:51 CEST 2011


> Pattern matching works in ghci:
>
>> let x = Just (Left (Blah [stuff]))
>> let (Just (Left (Blah y)) = x

 Thanks! That's exactly what I'm looking for.




More information about the Beginners mailing list