Changes between Version 6 and Version 7 of Prelude


Ignore:
Timestamp:
Jan 24, 2006 11:37:10 AM (10 years ago)
Author:
ross@…
Comment:

some data

Legend:

Unmodified
Added
Removed
Modified
  • Prelude

    v6 v7  
    2626
    2727On the other hand, any firm proposal in this area would cost a significant amount of work.  Some indication of general positivity or negativity towards the idea would help us know whether it is worth expending effort on devising some definite proposals.
     28
     29== Data points ==
     30
     31=== Language support ===
     32
     33The following names are used by the language definition:
     34{{{
     35Bool (True, False), Char, String, Integer, Rational, Ratio, IO,
     36Eq ((==)), Ord ((>=)),
     37Enum (enumFrom, enumFromThen, enumFromTo, enumFromThenTo),
     38Num (fromInteger, negate, (-)), Fractional (fromRational),
     39Monad ((>>=), (>>), fail),
     40undefined, error, (%), concatMap
     41}}}
     42[wiki:Defaulting] uses `Double` and all classes defined in standard libraries.
     43
     44[wiki:DerivedInstances Derived instances] use the classes `Eq`, `Ord`, `Enum`, `Bounded`, `Show` and `Read`, which refer to `Ordering`, `Int`, `ShowS` and `ReadS`.
     45
     46=== Re-exports ===
     47
     48The following Prelude functions are re-exported by other Haskell 98 modules:
     49
     50 List::
     51   map, (++), concat, filter,
     52   head, last, tail, init, null, length, (!!),
     53   foldl, foldl1, scanl, scanl1, foldr, foldr1, scanr, scanr1,
     54   iterate, repeat, replicate, cycle,
     55   take, drop, splitAt, takeWhile, dropWhile, span, break,
     56   lines, words, unlines, unwords, reverse, and, or,
     57   any, all, elem, notElem, lookup,
     58   sum, product, maximum, minimum, concatMap,
     59   zip, zip3, zipWith, zipWith3, unzip, unzip3
     60 IO::
     61   ioError, userError, catch, interact,
     62   putChar, putStr, putStrLn, print, getChar, getLine, getContents,
     63   readFile, writeFile, appendFile, readIO, readLn
     64 Maybe::
     65   maybe
     66 Monad::
     67   mapM, mapM_, sequence, sequence_, (=<<)