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
Alex D
GHC
Commits
1e4335ae
Commit
1e4335ae
authored
Mar 13, 2008
by
chak@cse.unsw.edu.au.
Browse files
typecheck/FD3: revert to error msg of previous version ofthe compiler
parent
e8d8c2e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
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
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