changed the output of :sat so it is formatted by type

This commit is contained in:
yuuko 2014-08-14 16:33:37 +01:00
parent 52e82226b5
commit 7d9376dfd5

View File

@ -346,7 +346,7 @@ satCmd str = do
Right (Just vs) -> do
let solutions = map (map (pp . E.WithBase ppOpts)) vs
io $ print ((ppPrec 3 parseExpr) <+> text "is satisfied by:") -- function application has precedence 3
mapM_ (io . print) (if n < 0 then solutions else take n solutions)
mapM_ (io . print . hsep) (if n < 0 then solutions else take n solutions)
specializeCmd :: String -> REPL ()
specializeCmd str = do