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
jberryman
GHC
Commits
b965e672
Commit
b965e672
authored
Nov 27, 2000
by
simonpj
Browse files
[project @ 2000-11-27 11:04:38 by simonpj]
Default methods are sys-binders
parent
b8f6e664
Changes
2
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/coreSyn/CoreTidy.lhs
View file @
b965e672
...
...
@@ -349,6 +349,7 @@ tidyIdInfo (_, occ_env, subst_env) is_external unfold_info id
new_flavour = case flavourInfo core_idinfo of
VanillaId -> ConstantId
ExportedId -> ConstantId
ConstantId -> ConstantId -- e.g. Default methods
DictFunId -> DictFunId
flavour -> pprTrace "tidyIdInfo" (ppr id <+> ppFlavourInfo flavour)
flavour
...
...
ghc/compiler/hsSyn/HsDecls.lhs
View file @
b965e672
...
...
@@ -261,8 +261,9 @@ tyClDeclSysNames :: TyClDecl name pat -> [(name, SrcLoc)]
-- Similar to tyClDeclNames, but returns the "implicit"
-- or "system" names of the declaration
tyClDeclSysNames (ClassDecl {tcdSysNames = names, tcdLoc = loc})
= [(n,loc) | n <- names]
tyClDeclSysNames (ClassDecl {tcdSysNames = names, tcdLoc = loc, tcdSigs = sigs})
= [(n,loc) | n <- names] ++
[(n,loc) | ClassOpSig _ (DefMeth n) _ loc <- sigs]
tyClDeclSysNames (TyData {tcdCons = cons, tcdSysNames = names, tcdLoc = loc})
= [(n,loc) | n <- names] ++
[(wkr_name,loc) | ConDecl _ wkr_name _ _ _ loc <- cons]
...
...
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