We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sum-types in Haskell can easily be translated to enumeration data-types in SMTLib.
data Color = Red | Green | Blue
( declare-datatypes ( ( Color 0) ) ( ( ( Red ) ( Green ) ( Blue ) )) )
As pointed out in ekmett/ersatz#46 (comment) one could also derive Codec instances for them.
Codec
This makes parsing a little tricky. Either make it stateful or digest parsed enums later.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Sum-types in Haskell can easily be translated to enumeration data-types in SMTLib.
( declare-datatypes ( ( Color 0) ) ( ( ( Red ) ( Green ) ( Blue ) )) )
As pointed out in ekmett/ersatz#46 (comment) one could also derive
Codec
instances for them.This makes parsing a little tricky. Either make it stateful or digest parsed enums later.
The text was updated successfully, but these errors were encountered: