Skip to content

Commit

Permalink
Make splitHsAppTys look through parentheses, fixing Trac #7903
Browse files Browse the repository at this point in the history
This was really just an oversight from long ago.
  • Loading branch information
Simon Peyton Jones committed May 15, 2013
1 parent a18ea4f commit fe389f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/hsSyn/HsTypes.lhs
Expand Up @@ -447,6 +447,7 @@ hsLTyVarLocNames qtvs = map hsLTyVarLocName (hsQTvBndrs qtvs)
\begin{code}
splitHsAppTys :: LHsType n -> [LHsType n] -> (LHsType n, [LHsType n])
splitHsAppTys (L _ (HsAppTy f a)) as = splitHsAppTys f (a:as)
splitHsAppTys (L _ (HsParTy f)) as = splitHsAppTys f as
splitHsAppTys f as = (f,as)
mkHsAppTys :: OutputableBndr n => LHsType n -> [LHsType n] -> HsType n
Expand Down

0 comments on commit fe389f5

Please sign in to comment.