diff options
Diffstat (limited to 'testsuite/tests/module/mod111.hs')
-rw-r--r-- | testsuite/tests/module/mod111.hs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/module/mod111.hs b/testsuite/tests/module/mod111.hs new file mode 100644 index 0000000000..fbc8c0ec31 --- /dev/null +++ b/testsuite/tests/module/mod111.hs @@ -0,0 +1,12 @@ +-- !!! Hiding an abstract (Prelude) type +module M where + +import Prelude hiding ( Char ) +import Data.Char hiding ( ord, Char ) +import qualified Data.Char ( ord ) + +type Char = Int + +ord :: Char -> Int +ord x = Data.Char.ord (chr x) + 1 + |