diff options
author | Thomas Miedema <thomasmiedema@gmail.com> | 2016-04-25 16:58:34 +0200 |
---|---|---|
committer | Thomas Miedema <thomasmiedema@gmail.com> | 2016-04-26 10:50:05 +0200 |
commit | dadf82d61f3cced61e9ccc35a5219e0b32cfee9e (patch) | |
tree | 5cedbbc76fcb69f1dda1be2b131fd5be0c64f08c /testsuite/tests/module/mod133.hs | |
parent | e8c04d4ca5c78c6b68dab840ea53af42eee99364 (diff) | |
download | haskell-dadf82d61f3cced61e9ccc35a5219e0b32cfee9e.tar.gz |
Testsuite: fixup lots of tests
These aren't run very often, because they require external libraries.
https://ghc.haskell.org/trac/ghc/wiki/Building/RunningTests/Running#AdditionalPackages
maessen-hashtab still doesn't compile, QuickCheck api changed.
Update submodule hpc.
Diffstat (limited to 'testsuite/tests/module/mod133.hs')
-rw-r--r-- | testsuite/tests/module/mod133.hs | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/testsuite/tests/module/mod133.hs b/testsuite/tests/module/mod133.hs index be05057ac9..f56ec1d02d 100644 --- a/testsuite/tests/module/mod133.hs +++ b/testsuite/tests/module/mod133.hs @@ -1,16 +1,24 @@ --- Control.Monad.Error re-exports Control.Monad.Fix. +-- Control.Monad.Except re-exports Control.Monad.Fix. -- This test checks that the subordinate-name test -- for a class operation (when renaming the instance decl) -- works correctly. module ShouldCompile where -import Control.Monad.Error +import Control.Monad +import Control.Monad.Except data Foo a = Foo a +instance Functor Foo where + fmap = liftM + +instance Applicative Foo where + pure = Foo + (<*>) = ap + instance Monad Foo where - return a = Foo a + return = pure (Foo a) >>= k = k a instance MonadFix Foo where |