-
Notifications
You must be signed in to change notification settings - Fork 1
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
[new] Allow pattern matching in lambdas, and compile constructors #22
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
572656f
multilambda changes
croyzor 8c80853
Update src/Brat/Checker/Monad.hs
croyzor 26dc1e4
Remove commented-out cases in canCompileDirect, they never happen
acl-cqc 6ed8baa
Remove unused imports of emptyEnv
acl-cqc e8b2afb
rm commented-out addNode
acl-cqc 9d13d5c
inline mkClause
acl-cqc 937002c
multilambda review comments
acl-cqc 285602d
Inline canCompileDirect
acl-cqc 1359bd8
[fix] Suppress wiring in Syn case of multilambda
croyzor 35fe07e
remove to_chk
acl-cqc a15ce92
Reference github issue
croyzor 2229efb
Update comment
croyzor 83c8c50
Remove brackets
croyzor 290ea83
Remove qpred
croyzor ed82351
[refactor] Refactor `mkWire`
croyzor f22599a
Update "TODO"
croyzor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
module Brat.Checker.Quantity where | ||
|
||
data Quantity = None | One | Tons deriving Show | ||
|
||
qpred :: Quantity -> Maybe Quantity | ||
qpred None = Nothing | ||
qpred One = Just None | ||
qpred Tons = Just Tons | ||
data Quantity = None | One | Tons deriving (Enum, Show) | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Some day we can move this, but let's not bother now