[Haskell-beginners] confused by <-

Bryce Verdier bryceverdier at gmail.com
Thu Sep 27 19:01:25 CEST 2012

On 9/26/12 6:00 PM, Ertugrul Söylemez wrote:
> Bryce Verdier <bryceverdier at gmail.com> wrote:
>>       body <- L.try (simpleHttp "http://www.google.com") :: IO (Either
>> L.SomeException Data.ByteString.Lazy.Internal.ByteString)
> Almost right, but your type signature is lying. =)
> Greets,
> Ertugrul

Thanks for your hint, with a fair amount of head bashing against a wall 
I was able to figure this out. At the end of day I got :

     body <- try (simpleHttp "http://www.google.com") :: GHandler 
PlayHaven PlayHaven (Either SomeException ByteString)

But what I don't understand, is why do I have GHandler PlayHaven 
PlayHaven (Either SomeException ByteString)
instead of IO (Either SomeException ByteString)?

Thanks again,

> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20120927/93d18840/attachment.htm>

More information about the Beginners mailing list