summaryrefslogtreecommitdiff
path: root/testsuite/tests/perf/compiler/T3064.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/perf/compiler/T3064.hs')
-rw-r--r--testsuite/tests/perf/compiler/T3064.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/testsuite/tests/perf/compiler/T3064.hs b/testsuite/tests/perf/compiler/T3064.hs
index dacca79296..e29dd95564 100644
--- a/testsuite/tests/perf/compiler/T3064.hs
+++ b/testsuite/tests/perf/compiler/T3064.hs
@@ -19,6 +19,8 @@ instance (Monad m) => Monad (ReaderT r m) where
m >>= k = ReaderT $ \r -> do
a <- runReaderT m r
runReaderT (k a) r
+
+instance (MonadFail m) => MonadFail (ReaderT r m) where
fail msg = ReaderT $ \_ -> fail msg
newtype ResourceT r s m v = ResourceT { unResourceT :: ReaderT r m v }