Proposal: transformers/mtl Applicative Relaxation

10 Feb
2019
10 Feb
'19
1:12 p.m.
I think given AMP that transformers should use CPP to relax Monad constraints to Applicative on newer versions of base. As an example: except :: (Monad m) => Either e a -> ExceptT e m a except m = ExceptT (return m) could become except :: (Applicative m) => Either e a -> ExceptT e m a except m = ExceptT (pure m) Similarly some typeclasses in mtl could do with some relaxation. A related issue: https://github.com/haskell/mtl/issues/35
2291
Age (days ago)
2291
Last active (days ago)
0 comments
1 participants
participants (1)
-
chessai .