Add Monad, export Monad, Functor and Either#488
Add Monad, export Monad, Functor and Either#488tmcdonell merged 2 commits intoAccelerateHS:masterfrom
Conversation
|
Just passing by, looks interesting!
|
Oops, I copied that part from
Another oops, that is not needed.
Sadly no, we can't follow the MAP because there's no |
There are limits to the amount of useless work we can get away with as academics. Makes sense :) |
|
Should the documentation reflect the lack of Applicatives? I suppose it's not obvious why it's missing, and it might cause confusion. |
|
brilliant, thanks! (: |
Description
Adds a Monad typeclass, and exports two modules (Functor and Either) which I was surprised to see unexported.
Motivation and context
While toying with a little Accelerate project, playing around with the pattern synonyms, I found myself implementing (>>=) for Maybe, and was surprised to see it not in Accelerate.
How has this been tested?
The Show instance looked reasonable.
Types of changes
Checklist
Go over all the following points, and put an
xin all the boxes that apply. If you're unsure about any of these, don't hesitate to ask. We're here to help!