[project @ 2005-05-23 10:17:22 by simonpj]
authorsimonpj <unknown>
Mon, 23 May 2005 10:17:22 +0000 (10:17 +0000)
committersimonpj <unknown>
Mon, 23 May 2005 10:17:22 +0000 (10:17 +0000)
commit6d4df3a3dafe94a2b952ff830068abae1258fa9e
tree28c0674f99738696835d940e80b8cba4ab5374da
parent487920aa093f16a86b64c1c9cb0c65444102b195
[project @ 2005-05-23 10:17:22 by simonpj]
Fix what "standard class" means

MERGE to STABLE

The Report's definition of defaulting (Section 4.3.4) defines a "standard class" to be
one defined by the Prelude or a standard library.  GHC was omitting the "..or a standard
library" part; and it even omitted the Prelude classes Monad and Functor.
This commit fixes the bug by adding

Random, RandomGen,
Monad, MonadPlus, Functor

to the classes defined as "standard".
ghc/compiler/prelude/PrelNames.lhs