Clarify error message (Trac #3805)
[ghc-hetmet.git] / compiler / parser / RdrHsSyn.lhs
index 300d886..b86068c 100644 (file)
@@ -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
@@ -977,6 +977,7 @@ mkInlinePragma :: Maybe Activation -> RuleMatchInfo -> Bool -> InlinePragma
 -- The Maybe is because the user can omit the activation spec (and usually does)
 mkInlinePragma mb_act match_info inl 
   = InlinePragma { inl_inline = inl
+                 , inl_sat    = Nothing
                  , inl_act    = act
                  , inl_rule   = match_info }
   where