Skip to content
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

Add Not node in dhall config #199

Merged
merged 3 commits into from
Mar 30, 2021
Merged

Conversation

pkowalcze
Copy link
Collaborator

Requested in #128

@pkowalcze pkowalcze changed the title Add AnyOf, Not nodes in dhall config Add Not node in dhall config Mar 30, 2021
dhall/core.dhall Outdated
, Not =
λ(matcher : Matcher) →
λ(M : Type) →
elem M (λ(RC : MatcherFold M) → RC.Not)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is definitely not right, but I lack the knowledge to work it out. @kubukoz could you take a look?

Copy link
Member

Choose a reason for hiding this comment

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

I lack the knowledge too 😂

@kubukoz kubukoz merged commit 8581ddf into polyvariant:main Mar 30, 2021
@@ -50,6 +50,7 @@ object Matcher {
final case class PipelineStatus(status: String) extends Matcher
final case class Many(values: List[Matcher]) extends Matcher
final case class OneOf(values: List[Matcher]) extends Matcher
final case class Not(value: Matcher) extends Matcher
Copy link
Member

Choose a reason for hiding this comment

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

and now I'm realizing this should be underlying because I called it that. @pkowalcze do you wanna rename this one?

Copy link
Collaborator Author

@pkowalcze pkowalcze Mar 30, 2021

Choose a reason for hiding this comment

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

Sure, here's the PR: #201

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.

None yet

2 participants