-
Notifications
You must be signed in to change notification settings - Fork 0
Reworking the Compiler ProtoCompat (big one) #48
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
Merged
Merged
Changes from 24 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
7e2b4e5
Drafted error messages
bladyjoker aba79e4
Used MonadErro m
bladyjoker 7e2378d
update: KC 1 constructor at a time + add Variable in inference
cstml 097f048
lint: remove redundant import
cstml e6e7bfd
Saved work, tests almost working
bladyjoker fc22301
Added tests for empty folds
bladyjoker e66b833
Purging the mul ty def from KindCheck modules and tests
bladyjoker 3f57029
All errors are in the API now
bladyjoker e052e32
Reshuffle into ProtoCompat/FromProto
bladyjoker 58065fd
Fixed the Cli
bladyjoker 22c4774
Generators scaffold
bladyjoker 0e2e1aa
Gen Proto tests rework
bladyjoker 21e9f87
Forgot a file
bladyjoker cc8f0d8
Added warning about `stripSourceInfo`
bladyjoker ee0ce8b
Merge remote-tracking branch 'origin/bladyjoker/proto-compat-rework' …
cstml d131862
fix: foldr not foldl
cstml 778ab6a
Merge pull request #47 from mlabs-haskell/compiler/constructor-based-…
bladyjoker 4cc3480
Proto documentation update
bladyjoker 57bee70
Merge remote-tracking branch 'origin/bladyjoker/proto-compat-rework' …
bladyjoker 409ef18
Remove a failing test and added TODOs, cleaned up after merge
bladyjoker 39e0700
Applied review suggestions
bladyjoker b25c2a9
Merge remote-tracking branch 'origin/main' into bladyjoker/proto-comp…
bladyjoker d243b4f
fix: add opaque to context
cstml c1a3f33
Merge pull request #52 from mlabs-haskell/fix/add-opaque-to-context
bladyjoker 54100bd
Applied suggestions
bladyjoker 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module LambdaBuffers.Compiler (runCompiler) where | ||
|
||
import Data.ProtoLens (Message (defMessage)) | ||
import LambdaBuffers.Compiler.KindCheck (check_) | ||
import LambdaBuffers.Compiler.ProtoCompat.FromProto ( | ||
runFromProto, | ||
toProto, | ||
) | ||
import Proto.Compiler (CompilerError, CompilerInput, CompilerResult) | ||
|
||
runCompiler :: CompilerInput -> Either CompilerError CompilerResult | ||
runCompiler compInp = do | ||
compInp' <- runFromProto compInp | ||
case check_ compInp' of | ||
Left err -> Left $ toProto err | ||
Right _ -> Right defMessage |
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.
Uh oh!
There was an error while loading. Please reload this page.