enumFromTo () () = [()]
enumFromThenTo () () () = [()]
-instance Bounded () where
- minBound = ()
- maxBound = ()
-
instance Show () where
showsPrec p () = showString "()"
showList ls = showList__ (showsPrec 0) ls
go now | done now = []
| otherwise = C# (chr# now) : go (now +# step)
-instance Bounded Char where
- minBound = '\0'
- maxBound = '\255'
-
instance Show Char where
showsPrec p '\'' = showString "'\\''"
showsPrec p c = showChar '\'' . showLitChar c . showChar '\''
go now = I# now : go (now +# step)
-instance Bounded Int where
- minBound = -2147483647 -- **********************
- maxBound = 2147483647 -- **********************
-
instance Num Int where
(+) x y = plusInt x y
(-) x y = minusInt x y