diff options
Diffstat (limited to 'testsuite/tests/module/mod110.hs')
-rw-r--r-- | testsuite/tests/module/mod110.hs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/tests/module/mod110.hs b/testsuite/tests/module/mod110.hs new file mode 100644 index 0000000000..897dd12cdb --- /dev/null +++ b/testsuite/tests/module/mod110.hs @@ -0,0 +1,15 @@ +-- !!! Re-defining Prelude class +module M where + +import Prelude +--import qualified Prelude + +class Eq a where + equal :: a -> a -> Prelude.Bool + negate :: a -> a + +instance Eq Prelude.Int where + equal x y = x Prelude.== y + negate x = Prelude.negate x +x = M.negate (2 :: Prelude.Int) + |