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
Tobias Decking
GHC
Commits
c2527e8d
Commit
c2527e8d
authored
Jul 28, 2004
by
simonpj
Browse files
[project @ 2004-07-28 12:59:53 by simonpj]
Comments only
parent
95941de4
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/typecheck/TcDeriv.lhs
View file @
c2527e8d
...
...
@@ -529,9 +529,10 @@ mkDataTypeEqn tycon clas
-- data T a b = ... deriving( Typeable )
-- gives
-- instance Typeable2 T where ...
-- Notice that:
-- 1. There are no constraints in the instance
-- 2. There are no type variables either
--
2
. The actual class we want to generate isn't necessarily
--
3
. The actual class we want to generate isn't necessarily
-- Typeable; it depends on the arity of the type
do { real_clas <- tcLookupClass (typeableClassNames !! tyConArity tycon)
; dfun_name <- new_dfun_name real_clas tycon
...
...
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