-
Notifications
You must be signed in to change notification settings - Fork 44
Function evaluation #131
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
Function evaluation #131
Conversation
ebfee3c
to
67832db
Compare
67832db
to
6026563
Compare
fdb6083
to
c3ab23b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK in general. I'm not convinced though about and-ing patterns without checking sorts, and also, I'm not sure how easy it would be to extract a demo from the evaluation process.
@@ -2,6 +2,7 @@ | |||
{-# LANGUAGE FlexibleInstances #-} | |||
{-# LANGUAGE GADTs #-} | |||
{-# LANGUAGE MultiParamTypeClasses #-} | |||
{-# LANGUAGE PatternSynonyms #-} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this still used?
@@ -32,6 +33,10 @@ asPurePattern | |||
:: Pattern level var (PureMLPattern level var) -> PureMLPattern level var | |||
asPurePattern = Fix | |||
|
|||
fromPurePattern | |||
:: PureMLPattern level var -> Pattern level var (PureMLPattern level var) | |||
fromPurePattern (Fix p) = p |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe fromPurePattern = unFix
?
And-ing patterns: I hope that Data.Kore.ASTUtils.SmartConstructors would make this easier after #137 gets submitted. |
No description provided.