[Haskell-beginners] Deserializing data with ProtocolBuffers

Daniel Fischer daniel.is.fischer at googlemail.com
Thu May 12 19:28:50 CEST 2011


On Thursday 12 May 2011 19:25:27, Raphael Päbst wrote:
> Ah, thank you! Now it works.
> Now I need only to get rid of the Right from the returned Either value
> and I'm done.

Pattern-match:

ghci> case messageGet bs of { Left err -> undefined; Right result -> 
result; } :: type

or use either (\_ -> error "oops") id

> 
> Raphael



More information about the Beginners mailing list