projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
1ffeecd
)
[project @ 2003-02-18 15:42:59 by simonpj]
author
simonpj
<unknown>
Tue, 18 Feb 2003 15:42:59 +0000
(15:42 +0000)
committer
simonpj
<unknown>
Tue, 18 Feb 2003 15:42:59 +0000
(15:42 +0000)
Comments only
ghc/compiler/typecheck/TcClassDcl.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/typecheck/TcClassDcl.lhs
b/ghc/compiler/typecheck/TcClassDcl.lhs
index
639b772
..
2149943
100644
(file)
--- a/
ghc/compiler/typecheck/TcClassDcl.lhs
+++ b/
ghc/compiler/typecheck/TcClassDcl.lhs
@@
-150,6
+150,9
@@
tcClassDecl1 (ClassDecl {tcdCtxt = context, tcdName = class_name,
sc_tys = mkPredTys sc_theta
dict_component_tys = sc_tys ++ op_tys
sc_sel_ids = [mkDictSelId sc_name clas | sc_name <- sc_sel_names]
sc_tys = mkPredTys sc_theta
dict_component_tys = sc_tys ++ op_tys
sc_sel_ids = [mkDictSelId sc_name clas | sc_name <- sc_sel_names]
+ -- Slightly curiously, the dictionary selectors are treated as RecordSelectorIds,
+ -- so they are treated as implicit Ids, but we don't give labelled fields to
+ -- the data constructors
in
tcMkDataCon datacon_name
[{- No strictness -}]
in
tcMkDataCon datacon_name
[{- No strictness -}]