Skip to content

Commit 42eb296

Browse files
fix prettyprinting precedence
1 parent 8a90cf2 commit 42eb296

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Constrained/TheKnot.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ instance Syntax ProdW where
206206
prettySelect :: Int -> TermD deps t -> Maybe (Doc ann)
207207
prettySelect i (App f (t :> Nil))
208208
| Just ProdSndW <- getWitness f = prettySelect (i + 1) t
209-
| Just ToGenericW <- getWitness f = Just $ "sel @" <> pretty i <+> pretty t
209+
| Just ToGenericW <- getWitness f = Just $ "sel @" <> pretty i <+> prettyPrec 10 t
210210
prettySelect _ _ = Nothing
211211

212212
instance Semantics ProdW where

0 commit comments

Comments
 (0)