File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -251,13 +251,13 @@ instance Semantics SetW where
251251 semantics = setSem
252252
253253instance Syntax SetW where
254- prettySymbol SubsetW (Lit n :> y :> Nil ) p = Just $ parensIf (p > 10 ) $ " subset_" <+> prettyShowSet n <+> prettyPrec 10 y
255- prettySymbol SubsetW (y :> Lit n :> Nil ) p = Just $ parensIf (p > 10 ) $ " subset_" <+> prettyPrec 10 y <+> prettyShowSet n
256- prettySymbol DisjointW (Lit n :> y :> Nil ) p = Just $ parensIf (p > 10 ) $ " disjoint_" <+> prettyShowSet n <+> prettyPrec 10 y
257- prettySymbol DisjointW (y :> Lit n :> Nil ) p = Just $ parensIf (p > 10 ) $ " disjoint_" <+> prettyPrec 10 y <+> prettyShowSet n
258- prettySymbol UnionW (Lit n :> y :> Nil ) p = Just $ parensIf (p > 10 ) $ " union_" <+> prettyShowSet n <+> prettyPrec 10 y
259- prettySymbol UnionW (y :> Lit n :> Nil ) p = Just $ parensIf (p > 10 ) $ " union_" <+> prettyPrec 10 y <+> prettyShowSet n
260- prettySymbol MemberW (y :> Lit n :> Nil ) p = Just $ parensIf (p > 10 ) $ " member_" <+> prettyPrec 10 y <+> prettyShowSet n
254+ prettySymbol SubsetW (Lit n :> y :> Nil ) p = Just $ parensIf (p > 10 ) $ " subset_" <+> prettyShowSet n <+> prettyPrec 11 y
255+ prettySymbol SubsetW (y :> Lit n :> Nil ) p = Just $ parensIf (p > 10 ) $ " subset_" <+> prettyPrec 11 y <+> prettyShowSet n
256+ prettySymbol DisjointW (Lit n :> y :> Nil ) p = Just $ parensIf (p > 10 ) $ " disjoint_" <+> prettyShowSet n <+> prettyPrec 11 y
257+ prettySymbol DisjointW (y :> Lit n :> Nil ) p = Just $ parensIf (p > 10 ) $ " disjoint_" <+> prettyPrec 11 y <+> prettyShowSet n
258+ prettySymbol UnionW (Lit n :> y :> Nil ) p = Just $ parensIf (p > 10 ) $ " union_" <+> prettyShowSet n <+> prettyPrec 11 y
259+ prettySymbol UnionW (y :> Lit n :> Nil ) p = Just $ parensIf (p > 10 ) $ " union_" <+> prettyPrec 11 y <+> prettyShowSet n
260+ prettySymbol MemberW (y :> Lit n :> Nil ) p = Just $ parensIf (p > 10 ) $ " member_" <+> prettyPrec 11 y <+> prettyShowSet n
261261 prettySymbol _ _ _ = Nothing
262262
263263instance (Ord a , HasSpec a , HasSpec (Set a )) => Semigroup (Term (Set a )) where
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ instance Syntax ProdW where
206206prettySelect :: Int -> TermD deps t -> Maybe (Doc ann )
207207prettySelect 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 11 t
210210prettySelect _ _ = Nothing
211211
212212instance Semantics ProdW where
You can’t perform that action at this time.
0 commit comments