Skip to content

Commit

Permalink
pretty: missing parents around arguments to intersect
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcdonell committed Sep 21, 2012
1 parent 5c20f02 commit afb69aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Data/Array/Accelerate/Pretty/Print.hs
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ prettyPreExp pp _lvl alvl wrap (Shape idx)
prettyPreExp pp lvl alvl wrap (ShapeSize idx)
= wrap $ text "shapeSize" <+> parens (prettyPreExp pp lvl alvl parens idx)
prettyPreExp pp lvl alvl wrap (Intersect sh1 sh2)
= wrap $ text "intersect" <+> sep [ prettyPreExp pp lvl alvl wrap sh1
, prettyPreExp pp lvl alvl wrap sh2 ]
= wrap $ text "intersect" <+> sep [ prettyPreExp pp lvl alvl parens sh1
, prettyPreExp pp lvl alvl parens sh2 ]

-- Pretty print nested pairs as a proper tuple.
--
Expand Down

0 comments on commit afb69aa

Please sign in to comment.