Allow a for-all type inside a usage annotation:
__u - (forall a. type)
[This actually simply inolved making rnHsType a bit more permissive.]
The particular way this shows up right now is a bug that Keith is working
on, but in general it should be legal.
rnHsType doc (MonoUsgTy usg ty)
= newUsg usg `thenRn` \ (usg', usg_fvs) ->
- rnHsType doc ty `thenRn` \ (ty', ty_fvs) ->
+ rnHsPolyType doc ty `thenRn` \ (ty', ty_fvs) ->
+ -- A for-all can occur inside a usage annotation
returnRn (MonoUsgTy usg' ty',
usg_fvs `plusFV` ty_fvs)
where