File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change
1
+ Next
2
+ * Added a `MonadFail` instance for `InputT`.
3
+
1
4
Changed in version 0.7.5.0:
2
5
* Add the new function `fallbackCompletion` to combine
3
6
multiple `CompletionFunc`s
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import System.Console.Haskeline.Term
13
13
14
14
import Control.Exception (IOException )
15
15
import Control.Monad.Catch
16
+ import Control.Monad.Fail as Fail
16
17
import Control.Monad.Fix
17
18
import Data.IORef
18
19
import System.Directory (getHomeDirectory )
@@ -58,6 +59,9 @@ newtype InputT m a = InputT {unInputT ::
58
59
instance MonadTrans InputT where
59
60
lift = InputT . lift . lift . lift . lift . lift
60
61
62
+ instance ( Fail. MonadFail m ) => Fail. MonadFail (InputT m ) where
63
+ fail = lift . Fail. fail
64
+
61
65
instance ( MonadFix m ) => MonadFix (InputT m ) where
62
66
mfix f = InputT (mfix (unInputT . f))
63
67
You can’t perform that action at this time.
0 commit comments