Observe parens when resolving type operators

Fixes #254
This commit is contained in:
Trevor Elliott 2015-06-30 10:19:28 -07:00
parent fafaf4ca26
commit 3117d07a79
2 changed files with 3 additions and 3 deletions

View File

@ -416,7 +416,7 @@ rnType isProp = go
TLocated t' r -> withLoc r
$ TLocated <$> go t' <*> pure r
TParens t' -> go t'
TParens t' -> TParens <$> go t'
TInfix a o _ b ->
do op <- renameTypeOp isProp o

View File

@ -273,11 +273,11 @@ doCheckType ty k =
P.TUser x [] -> checkTyThing x k
P.TUser x ts -> tySyn False x ts k
P.TParens t -> doCheckType t k
P.TInfix{} -> panic "KindCheck"
[ "TInfix not removed by the renamer", show ty ]
P.TParens{} -> panic "KindCheck"
[ "TParens not removed by the renamer", show ty ]
where
checkF f = do t <- kInRange (srcRange (name f))