Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
868297c3
Commit
868297c3
authored
Jun 29, 2000
by
keithw
Browse files
[project @ 2000-06-29 14:25:36 by keithw]
Add missing implicit occs relating to list comprehensions in deriving (Ix,Read).
parent
637e79ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/prelude/PrelInfo.lhs
View file @
868297c3
...
...
@@ -339,12 +339,18 @@ deriving_occ_info
, (boundedClassKey, [intTyCon_RDR])
, (showClassKey, [intTyCon_RDR, numClass_RDR, ordClass_RDR, compose_RDR, showString_RDR,
showParen_RDR, showSpace_RDR, showList___RDR])
, (readClassKey, [intTyCon_RDR, numClass_RDR, ordClass_RDR, append_RDR,
, (readClassKey, [intTyCon_RDR, numClass_RDR, ordClass_RDR, append_RDR,
foldr_RDR, build_RDR,
-- foldr and build required for list comprehension
-- KSW 2000-06
lex_RDR, readParen_RDR, readList___RDR, thenM_RDR])
-- returnM (and the rest of the Monad class decl)
-- will be forced in as result of depending
-- on thenM. -- SOF 1/99
, (ixClassKey, [intTyCon_RDR, numClass_RDR, and_RDR, map_RDR, enumFromTo_RDR,
, (ixClassKey, [intTyCon_RDR, numClass_RDR, and_RDR, map_RDR, enumFromTo_RDR,
foldr_RDR, build_RDR,
-- foldr and build required for list comprehension used
-- with single constructor types -- KSW 2000-06
returnM_RDR, failM_RDR])
-- the last two are needed to force returnM, thenM and failM
-- in before typechecking the list(monad) comprehension
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment