[Haskell-beginners] The Applicative instance for ((->) a)

Thomas Davie tom.davie at gmail.com
Sat Jul 11 08:03:50 EDT 2009


On 11 Jul 2009, at 13:54, Tony Morris wrote:

> Here are a couple of examples
>
>> (+) <$> Just 7 <*> Just 8
> Just 15
>
>> (*) <$> [1, 2, 3] <*> [4, 5, 6]
> [4,5,6,8,10,12,12,15,18]

Those are for Maybe and [] respectively though, not ((->) a)

Bob


More information about the Beginners mailing list