Skip to content

Simplification attribute: parse and use optional priority argument #1933

New issue

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

Conversation

ana-pantilie
Copy link
Contributor

Fixes #1914


Reviewer checklist
  • Test coverage: stack test --coverage
  • Public API documentation: stack haddock

@ana-pantilie ana-pantilie changed the title Simplification attribute: parse optional priority argument Simplification attribute: parse and use optional priority argument Jun 29, 2020
@ana-pantilie ana-pantilie marked this pull request as ready for review June 29, 2020 14:15
@ana-pantilie ana-pantilie requested a review from ttuegel June 29, 2020 14:15
newtype Simplification = Simplification { isSimplification :: Bool }
deriving (Eq, GHC.Generic, Ord, Show)
data Simplification
= IsSimplification SimplificationPriority
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
= IsSimplification SimplificationPriority
= IsSimplification !SimplificationPriority

(Priority { getPriority }, Owise { isOwise }) = from @attrs attrs
:: forall attrs
. HasCallStack
=> From attrs (Priority, Owise, Simplification)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should wrap this combination of (Priority, Owise, Simplification) in a newtype, but I'm not sure what to call it.

@ana-pantilie ana-pantilie merged commit 3f55037 into runtimeverification:master Jun 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simplification priority attribute
2 participants