Skip to content

Commit

Permalink
Fix haskell-suite#24 - Incorrect parsing of nested infix patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasbroberg authored and UnkindPartition committed Aug 7, 2013
1 parent 53070a4 commit 1364aa8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Language/Haskell/Exts/Fixity.hs
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ leafFix fixs e = case e of
fix x = applyFixities fixs x

leafFixP fixs p = case p of
PInfixApp p1 op p2 -> liftM2 (flip PInfixApp op) (leafFixP fixs p1) (fix p2)
PNeg p -> liftM PNeg $ fix p
PApp n ps -> liftM (PApp n) $ mapM fix ps
PTuple ps -> liftM PTuple $ mapM fix ps
Expand Down

0 comments on commit 1364aa8

Please sign in to comment.