Commit 3ddb6bb4 authored by simonpj@microsoft.com's avatar simonpj@microsoft.com

Clarify error message (Trac #3805)

parent 4922b3bf
......@@ -871,7 +871,7 @@ checkValSig lhs@(L l _) _
| 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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment