rfcs icon indicating copy to clipboard operation
rfcs copied to clipboard

Add MFP (MonadFail proposal)

Open quchen opened this issue 9 years ago • 4 comments

Straight adaption of the proposal as seen on the Trac Wiki, https://prime.haskell.org/wiki/Libraries/Proposals/MonadFail

Rendered version of this proposal: https://github.com/quchen/rfcs/blob/mfp/texts/0000-monadfail.rst

quchen avatar Jul 22 '16 14:07 quchen

I think we may want to wait here until we know what new type system features we will include; in particular, multi-parametre type classes would enable class MonadFail f m or some such.

strake avatar Aug 20 '16 01:08 strake

When this standard is finished, MonadFail will have been in GHC for quite some time. I doubt we have much room for changes here. Early adopters already introduced MonadFail instances, we don’t want to break everything for yet another change in that department again.

quchen avatar Aug 21 '16 14:08 quchen

I think perhaps he's thinking of the isstring tweak for the either instance of monad fail that was recently proposed?

But yeah, any tweaks in that sphere should be well motivated by some experiments

On Sunday, August 21, 2016, David Luposchainsky [email protected] wrote:

When this standard is finished, MonadFail will have been in GHC for quite some time. I doubt we have much room for changes here. Early adopters already introduced MonadFail instances, we don’t want to break everything for yet another change in that department again.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/haskell/rfcs/pull/2#issuecomment-241259973, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAQwpcMK1lzCcxo_WDk00xl3_KF6BMiks5qiFzngaJpZM4JS1OM .

cartazio avatar Aug 21 '16 20:08 cartazio

@quchen: Nonetheless, i'd prefer to wait until we know our options to choose one.

strake avatar Aug 23 '16 08:08 strake