Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
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