You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ghc examples/ex1.hs SimpleSMT.hs
...
examples/ex1.hs:5:11: error:
• Couldn't match expected type: IO Logger
with actual type: Int -> IO Logger
• Probable cause: ‘newLogger’ is applied to too few arguments
In a stmt of a 'do' block: l <- newLogger
I think newLogger was extended with an argument, but the example was not updated.
The trivial fix is
main =
- do l <- newLogger
+ do l <- newLogger 0
s <- newSolver "cvc4" ["--lang=smt2"] (Just l)
I can do it. Perhaps it should be part of a test suite. But this would probably require that some SMT solver is present. cvc4 is superseeded by cvc5, and for that, we can simply write
s <- newSolver "cvc5" [] (Just l)
(we don't need the option).
The text was updated successfully, but these errors were encountered:
I think
newLogger
was extended with an argument, but the example was not updated.The trivial fix is
I can do it. Perhaps it should be part of a test suite. But this would probably require that some SMT solver is present.
cvc4
is superseeded bycvc5
, and for that, we can simply write(we don't need the option).
The text was updated successfully, but these errors were encountered: