Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
f6176af6
Commit
f6176af6
authored
Feb 20, 2003
by
simonpj
Browse files
[project @ 2003-02-20 13:17:02 by simonpj]
Comments only
parent
3251e3ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/typecheck/TcClassDcl.lhs
View file @
f6176af6
...
...
@@ -122,7 +122,7 @@ tcClassDecl1 (ClassDecl {tcdCtxt = context, tcdName = class_name,
in
tcExtendTyVarEnv tyvars $
checkDefaultBinds clas op_names def_methods
`thenM` \ mb_dm_env ->
checkDefaultBinds clas op_names def_methods
`thenM` \ mb_dm_env ->
-- CHECK THE CONTEXT
-- The renamer has already checked that the context mentions
...
...
@@ -150,9 +150,6 @@ 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]
-- 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 -}]
...
...
Write
Preview
Supports
Markdown
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