summaryrefslogtreecommitdiff
path: root/testsuite/tests/polykinds/MonoidsTF.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/polykinds/MonoidsTF.hs')
-rw-r--r--testsuite/tests/polykinds/MonoidsTF.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/testsuite/tests/polykinds/MonoidsTF.hs b/testsuite/tests/polykinds/MonoidsTF.hs
index 8e3b378046..327ae08bea 100644
--- a/testsuite/tests/polykinds/MonoidsTF.hs
+++ b/testsuite/tests/polykinds/MonoidsTF.hs
@@ -103,11 +103,10 @@ instance (MId (→) m ~ (), MComp (→) m ~ (,), Monoidy (→) m)
mempty = munit ()
instance Applicative Wrapper where
- pure = return
+ pure x = runNT munit $ Id x
(<*>) = ap
instance Monad Wrapper where
- return x = runNT munit $ Id x
x >>= f = runNT mjoin $ FC (f `fmap` x)
-- And so the following works: