Skip to content

Commit ff3afd7

Browse files
more clearer
1 parent b0ad9a5 commit ff3afd7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Constrained/Env.hs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ module Constrained.Env (
2020

2121
import Constrained.Core
2222
import Constrained.GenT
23-
import Constrained.PrettyUtils
2423
import Data.Map (Map)
2524
import Data.Map qualified as Map
2625
import Data.Typeable
@@ -80,12 +79,12 @@ filterKeys :: Env -> (forall a. Typeable a => Var a -> Bool) -> Env
8079
filterKeys (Env m) f = Env $ Map.filterWithKey (\ (EnvKey k) _ -> f k) m
8180

8281
instance Pretty EnvValue where
83-
pretty (EnvValue x) = pretty $ take 80 (show x)
82+
pretty (EnvValue x) = viaShow x
8483

8584
instance Pretty EnvKey where
8685
pretty (EnvKey x) = viaShow x
8786

8887
instance Pretty Env where
89-
pretty (Env m) = "Env" /> vsep (map f (Map.toList m))
88+
pretty (Env m) = vsep (map f (Map.toList m))
9089
where
9190
f (k, v) = hsep [pretty k, "->", pretty v]

src/Constrained/Generation.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,6 +1309,7 @@ instance Pretty SolverStage where
13091309
( [pretty stageSpec | not $ isTrueSpec stageSpec]
13101310
++ ["---" | not $ null stagePreds, not $ isTrueSpec stageSpec]
13111311
++ map pretty stagePreds
1312+
++ ["_" | null stagePreds && isTrueSpec stageSpec]
13121313
)
13131314

13141315
newtype SolverPlan = SolverPlan { solverPlan :: [SolverStage] }

0 commit comments

Comments
 (0)