projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4922b3b
)
Clarify error message (Trac #3805)
author
simonpj@microsoft.com
<unknown>
Thu, 7 Jan 2010 15:10:02 +0000
(15:10 +0000)
committer
simonpj@microsoft.com
<unknown>
Thu, 7 Jan 2010 15:10:02 +0000
(15:10 +0000)
compiler/parser/RdrHsSyn.lhs
patch
|
blob
|
history
diff --git
a/compiler/parser/RdrHsSyn.lhs
b/compiler/parser/RdrHsSyn.lhs
index
2700c6f
..
b86068c
100644
(file)
--- a/
compiler/parser/RdrHsSyn.lhs
+++ b/
compiler/parser/RdrHsSyn.lhs
@@
-871,7
+871,7
@@
checkValSig lhs@(L l _) _
| looks_like_foreign lhs
= parseError l "Invalid type signature; perhaps you meant to use -XForeignFunctionInterface?"
| otherwise
| looks_like_foreign lhs
= parseError l "Invalid type signature; perhaps you meant to use -XForeignFunctionInterface?"
| otherwise
- = parseError l "Invalid type signature"
+ = parseError l "Invalid type signature: should be of form <variable> :: <type>"
where
-- A common error is to forget the ForeignFunctionInterface flag
-- so check for that, and suggest. cf Trac #3805
where
-- A common error is to forget the ForeignFunctionInterface flag
-- so check for that, and suggest. cf Trac #3805