MaybeList Applicative
In an exercise from the previous lesson, you implemented the
Applicative
forMaybeList
. Do it again, but this time, derive it!
That MaybeList
type we mentioned was a newtype
, much like our ReaderIO
type.
You can see here for the various ways of writing that instance that we presented last time. This time the answer will be more succinct.