Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gesh
GHC
Commits
c06d51eb
Commit
c06d51eb
authored
24 years ago
by
Simon Peyton Jones
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 2000-10-31 10:04:41 by simonpj]
Error in TcDeriv
parent
7c068ace
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ghc/compiler/typecheck/TcDeriv.lhs
+3
-2
3 additions, 2 deletions
ghc/compiler/typecheck/TcDeriv.lhs
ghc/compiler/typecheck/TcModule.lhs
+1
-1
1 addition, 1 deletion
ghc/compiler/typecheck/TcModule.lhs
with
4 additions
and
3 deletions
ghc/compiler/typecheck/TcDeriv.lhs
+
3
−
2
View file @
c06d51eb
...
...
@@ -309,12 +309,13 @@ makeDerivEqns this_mod tycons
= case chk_out clas tycon of
Just err -> addErrTc err `thenNF_Tc_`
returnNF_Tc Nothing
Nothing -> newDFunName this_mod clas ty
var_tys
locn `thenNF_Tc` \ dfun_name ->
Nothing -> newDFunName this_mod clas
[
ty
]
locn `thenNF_Tc` \ dfun_name ->
returnNF_Tc (Just (dfun_name, clas, tycon, tyvars, constraints))
where
clas_key = classKey clas
tyvars = tyConTyVars tycon
-- ToDo: Do we need new tyvars ???
tyvars = tyConTyVars tycon
tyvar_tys = mkTyVarTys tyvars
ty = mkTyConApp tycon tyvar_tys
data_cons = tyConDataCons tycon
locn = getSrcLoc tycon
...
...
This diff is collapsed.
Click to expand it.
ghc/compiler/typecheck/TcModule.lhs
+
1
−
1
View file @
c06d51eb
...
...
@@ -46,7 +46,7 @@ import Module ( Module )
import Name ( Name, isLocallyDefined,
toRdrName, nameEnvElts, lookupNameEnv,
)
import TyCon ( tyConGenInfo
, isClassTyCon
)
import TyCon ( tyConGenInfo )
import Maybes ( thenMaybe )
import Util
import BasicTypes ( EP(..), Fixity )
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment