[Haskell-beginners] = vs <-
Benjamin Edwards
edwards.benj at gmail.com
Wed Aug 11 17:02:19 EDT 2010
Not really...
Remember <- is part of the do notation. You use it within monads when using
do, and never outside of them :) Well... list comps as well, but it's much
of a muchness.
On 11 August 2010 22:12, prad <prad at towardsfreedom.com> wrote:
> i'm using them right i think because it works, but my understanding is
> fuzzy.
>
> it seems <- is used when you do things like load a file or get
> arguments from outside or if you are return something from a function
>
> these seem to take the form of something other than an internal type
> like Int or String and have to be 'massaged' into use with things like
> show or fromSql etc
>
> the = is used with let and seems to work for any assignments that are
> internal.
>
> are these assessments correct?
>
> --
> In friendship,
> prad
>
> ... with you on your journey
> Towards Freedom
> http://www.towardsfreedom.com (website)
> Information, Inspiration, Imagination - truly a site for soaring I's
> _______________________________________________
> 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/20100811/089ec9e6/attachment.html
More information about the Beginners
mailing list