[Haskell-beginners] Question on terminology

Kostiantyn Rybnikov k-bx at k-bx.com
Sun Mar 6 11:04:51 UTC 2016


(f a b) still doesn't make a lot of sense, I assume (a -> b) was meant in
that argument type.
On Mar 3, 2016 21:13, "Rein Henrichs" <rein.henrichs at gmail.com> wrote:

> Ben, I just assumed that g was a typo for f.
>
> On Thu, Mar 3, 2016 at 10:10 AM Ben Rogalski <bwrogalski at gmail.com> wrote:
>
>> I'm having trouble understanding this:
>>
>> > IIUC, one would describe fmap as "lifting" a function g into a functor
>> f,
>> > in the sense of
>> >
>> > Functor f => (g a b) -> g a -> g b
>> >
>> >
>> > Is there an inverse concept (? co-lift ?) that describes
>> >
>> > Functor f => (g a -> g b) -> a -> b
>> >
>>
>> It seems like these are type declarations for functions, with class
>> constraints that say f must be a Functor, but then f doesn't appear
>> anywhere else in the declaration. Why is this?
>>
>> Thanks,
>> -Ben
>> _______________________________________________
>> Beginners mailing list
>> Beginners at haskell.org
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>>
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20160306/776855b4/attachment.html>


More information about the Beginners mailing list