[Haskell-cafe] Alternative name for return

Tarik ÖZKANLI tozkanli2023 at gmail.com
Tue Aug 6 08:14:01 CEST 2013


next, carry, feed, roll



On 6 August 2013 08:37, KC <kc1956 at gmail.com> wrote:

> I thought a pure value was being returned from the monad. :)
>
>
> On Mon, Aug 5, 2013 at 10:32 PM, Christian Sternagel <
> c.sternagel at gmail.com> wrote:
>
>> Dear Jurriën.
>>
>> personally, I like "lift" (which is of course already occupied in
>> Haskell), since an arbitrary value is "lifted" into a monad. (The
>> literature sometimes uses "unit".)
>>
>> cheers
>>
>> chris
>>
>>
>> On 08/06/2013 02:14 PM, J. Stutterheim wrote:
>>
>>> Dear Cafe,
>>>
>>>
>>> Suppose we now have the opportunity to change the name of the `return`
>>> function in Monad, what would be a "better"  name for it? (for some
>>> definition of better)
>>>
>>> N.B. I am _not_ proposing that we actually change the name of `return`.
>>> I do currently have the opportunity to pick names for common functions in a
>>> non-Haskell related project, so I was wondering if there perhaps is a
>>> better name for `return`.
>>>
>>>
>>> - Jurriën
>>> ______________________________**_________________
>>> Haskell-Cafe mailing list
>>> Haskell-Cafe at haskell.org
>>> http://www.haskell.org/**mailman/listinfo/haskell-cafe<http://www.haskell.org/mailman/listinfo/haskell-cafe>
>>>
>>>
>>
>> ______________________________**_________________
>> Haskell-Cafe mailing list
>> Haskell-Cafe at haskell.org
>> http://www.haskell.org/**mailman/listinfo/haskell-cafe<http://www.haskell.org/mailman/listinfo/haskell-cafe>
>>
>
>
>
> --
> --
> Regards,
> KC
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130806/f7e23529/attachment.htm>


More information about the Haskell-Cafe mailing list