[Haskell-cafe] AMP - how do you motivate this in teaching?
hesselink at gmail.com
Fri Nov 20 09:31:48 UTC 2015
On 20 November 2015 at 02:30, Manuel Gómez <targen at gmail.com> wrote:
> I haven’t found a helpful example of an Applicative that is not a Monad
> that is practical for a lesson.
There's ZipList , which depending on the type of audience might be
doable. There's also Const , but that needs a Monoid constraint,
and since you said you considered ((,) e) as not having an
Applicative, which it does have with a Monoid constraint, perhaps
Const isn't suitable to you for that reason. There are more
interesting examples here .
More information about the Haskell-Cafe