Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex D
GHC
Commits
1e4335ae
Commit
1e4335ae
authored
Mar 13, 2008
by
chak@cse.unsw.edu.au.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typecheck/FD3: revert to error msg of previous version ofthe compiler
parent
e8d8c2e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
17 deletions
+4
-17
testsuite/tests/ghc-regress/typecheck/should_compile/FD3.hs
testsuite/tests/ghc-regress/typecheck/should_compile/FD3.hs
+0
-7
testsuite/tests/ghc-regress/typecheck/should_compile/FD3.stderr
...ite/tests/ghc-regress/typecheck/should_compile/FD3.stderr
+4
-10
No files found.
testsuite/tests/ghc-regress/typecheck/should_compile/FD3.hs
View file @
1e4335ae
...
...
@@ -2,13 +2,6 @@
-- Trac #1795
-- This should fail. It used to fail saying it can't unify
-- 'a' with '(String, a)'
-- but now it simply says that it can't deduce
-- (MkA (String, a) a) from the context ()
-- which is fair enough
module
ShouldCompile
where
data
A
a
=
A
...
...
testsuite/tests/ghc-regress/typecheck/should_compile/FD3.stderr
View file @
1e4335ae
FD3.hs:22:14:
Could not deduce (MkA (String, a) a) from the context ()
arising from a use of `mkA' at FD3.hs:22:14-18
Possible fix:
add (MkA (String, a) a) to the context of
the type signature for `translate'
or add an instance declaration for (MkA (String, a) a)
In the expression: mkA a
In the definition of `translate': translate a = mkA a
FD3.hs:15:0:
Occurs check: cannot construct the infinite type: a = (String, a)
When generalising the type(s) for `translate'
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