[Haskell-cafe] Alternative name for return
Brandon Allbery
allbery.b at gmail.com
Tue Aug 6 16:01:35 CEST 2013
On Tue, Aug 6, 2013 at 4:03 AM, J. Stutterheim <j.stutterheim at me.com> wrote:
> I have to admit that I am a bit torn about using `pure`. On the one hand,
> if you actually have a pure value, it feels pretty intuitive to me. But
> what about
>
> pure (putStrLn "Hi")
>
> `putStrLn "Hi"` is not a pure value... Or is there another way to
> interpret the word pure in this context?
>
I actually have the opposite problem: what's impure about lifting 5 into
Maybe or []? `pure` feels IO-targeted.
--
brandon s allbery kf8nh sine nomine associates
allbery.b at gmail.com ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130806/73d4a6dd/attachment.htm>
More information about the Haskell-Cafe
mailing list