@@ -39,18 +39,18 @@ prettyD0 = SMap.foldlWithKey step initial
3939
4040 initial = []
4141
42- step a k (Tagged Added b) = unwords [" [A]" , k, " :" , take 50 ( showECT b) ] : a
42+ step a k (Tagged Added b) = unwords [" [A]" , k, " :" , showECT b] : a
4343 step a k (Tagged Removed b) =
44- unwords [" [R]" , k, " :" , take 50 ( showECT b) ] : a
45- -- step a k (Tagged Same b) = unwords ["[S]", k, ":", take 50 ( showECT b) ] : a
44+ unwords [" [R]" , k, " :" , showECT b] : a
45+ -- step a k (Tagged Same b) = unwords ["[S]", k, ":", showECT b] : a
4646 step a _ (Tagged Same _) = a
4747 step a k (Tagged (Changed b1) b) =
4848 concat
4949 [ [unwords [" [C]" , k, " :" ]]
5050 , indenter
5151 4
52- [ unwords [" [OLD]" , take 50 ( showECT b) ]
53- , unwords [" [NEW]" , take 50 ( showECT b1) ]
52+ [ unwords [" [OLD]" , showECT b]
53+ , unwords [" [NEW]" , showECT b1]
5454 ]
5555 , a
5656 ]
@@ -85,12 +85,19 @@ prettyMC ctx =
8585
8686prettyAPI ::
8787 Bool
88+ -> Maybe Int
8889 -> API (StatusTag () ) (StatusTag () ) (StatusTag EntityContextType )
8990 -> String
90- prettyAPI ignoreInternal = printer . SMap. foldlWithKey step initial
91+ prettyAPI ignoreInternal trunction =
92+ printer . truncator . SMap. foldlWithKey step initial
9193
9294 where
9395
96+ truncator =
97+ case trunction of
98+ Just t -> map (take t)
99+ Nothing -> id
100+
94101 initial = []
95102
96103 step a _ (Tagged Same _) = a
0 commit comments