Commit 5e09d088 authored by simonpj@microsoft.com's avatar simonpj@microsoft.com

Elaborate for-all message slightly

parent cd759f05
......@@ -987,7 +987,8 @@ unknownNameErr rdr_name
, extra ]
where
extra | rdr_name == forall_tv_RDR
= ptext (sLit "Perhaps you intended to use -XRankNTypes or similar flag")
= vcat [ptext (sLit "Perhaps you intended to use -XRankNTypes or similar flag"),
ptext (sLit "to enable explicit-forall syntax: forall <tvs>. <type>?")]
| otherwise = empty
unknownSubordinateErr :: SDoc -> RdrName -> SDoc
......
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