[project @ 1999-01-21 20:15:30 by sof]
Enum instances updated to comply with the behaviour that Haskell 98 specifies. Notable changes, * [a..b] is not the empty list when a>b any longer. * [x..] and [x,y..] for Enum Int are now bounded lists. The first change is might be worth bearing in mind when converting 1.4 code to Haskell 98; functions may have made use of the old behaviour.
Showing
- ghc/lib/std/PrelBase.lhs 60 additions, 35 deletionsghc/lib/std/PrelBase.lhs
- ghc/lib/std/PrelBounded.lhs 0 additions, 3 deletionsghc/lib/std/PrelBounded.lhs
- ghc/lib/std/PrelHandle.lhs 2 additions, 0 deletionsghc/lib/std/PrelHandle.lhs
- ghc/lib/std/PrelNum.lhs 12 additions, 8 deletionsghc/lib/std/PrelNum.lhs
- ghc/lib/std/PrelNumExtra.lhs 29 additions, 7 deletionsghc/lib/std/PrelNumExtra.lhs
Please register or sign in to comment