-
-
Notifications
You must be signed in to change notification settings - Fork 391
Splice Plugin: expands TH splices and QuasiQuotes #759
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 all commits
Commits
Show all changes
64 commits
Select commit
Hold shift + click to select a range
5da1599
Implements splice location detection
konn cd052b0
Corrects detection logic
konn 52a8446
Changed to use (bogus) message for code action
konn 1648d19
Splice location
konn fd39e57
Extract `Ide.TreeTransform` as an independent package
konn f6de0ab
It once worked, but stops...
konn 3cbfba9
Now it works for inplace expansion for expressions
konn 41b2164
generalises tree transformation to general AST element
konn a959ad0
Done for Types and Patterns!
konn 313134a
Disabled "commented" style of expansion
konn 7d050c6
kills redundant imports
konn affa5ca
Merge branch 'master' into expand-splice-plugin
konn 05e4d7d
Updates cabal.project
konn cfca363
Nix fix
konn 520fdfd
Nix fix, fix
konn 107519c
Throws away loading hacks entirely
konn 3ed97db
Merge branch 'master' into expand-splice-plugin
konn 1d4ea8f
Type adjusted for inverse dependency
konn 4ca09d2
Resolves merge conflicts
konn 1624f76
WIP: Support hover and goto definition for top-level splices
mpickering 217f69b
Modifies splice information to store both spliced expression and expa…
konn 7e2d4a9
Avoid name collision
konn 1dab48b
formatting erros
konn 6bcb18a
Safer error handling
konn a915a1f
Rewrote using updated ghcide `TypeCheck` results
konn 794b771
Use `liftRnf rwhnf` to force spine of lists
konn 9cf55c4
Stop using `defaultRunMeta` directly to avoid override of preexisting…
konn f7e7e65
Error report
konn cd18dde
Add splice information into HIE generation.
mpickering 39a1cc4
Resolves interace conflict
konn 7876914
Add test
mpickering 5d46ac0
Changes to use ParsedModule to detect Splice CodeLens
konn b29fb59
formatted
konn 8cb16ff
Implements golden test
konn 58f58ac
mzero for HsDecl
konn f8b66dd
Decl Splice
konn 210c818
Workaround for Decl expansion and support type-errored macro expansion.
konn df59922
Merge branch 'master' into expand-splice-plugin
konn 6e57b13
Only setting up dflags correcly would suffice
konn 9f8a868
Removes lines accidentally added
konn 45a1388
Regression tests for Declaration splice and kind-error ones
konn 056f769
Workaround for GHC 8.8
konn 8fa549d
Revert "Workaround for GHC 8.8"
konn d3e0185
Unsupport pattern splices GHC 8.8
konn e62b03e
Corrects line position in GoToHover
konn 23a6781
Merge branch 'master' into expand-splice-plugin
konn 41dfc7e
Merge branch 'master' into expand-splice-plugin
konn a3ff03a
Merge branch 'master' into expand-splice-plugin
konn 10b7ce4
Increases wait time
konn 0b02765
Includes only related changes only
konn 8068a33
Merge branch 'master' into expand-splice-plugin
konn f2efe7c
Optimises `something'`
konn f71b51d
Adds hie.yaml
konn 96a14b1
circie ci: Modifies stack-8.10.3.yaml
konn 2e80296
Merge branch 'master' into expand-splice-plugin
konn 1c42421
Forgot to update dflags in auto-expansion with default strategy
konn 981fb40
Forgot to add golden file
konn 1191344
A dummy commit to run CI
konn f6f7bba
Merge branch 'master' into expand-splice-plugin
konn 27eba15
Merge branch 'master' into expand-splice-plugin
konn c4f19e4
Merge branch 'master' into expand-splice-plugin
konn 0c53a70
Merge branch 'master' into expand-splice-plugin
konn 3032c32
Workaround for GHC 8.8 pattern splices
konn 6341b39
Merge branch 'master' into expand-splice-plugin
mergify[bot] 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 |
---|---|---|
|
@@ -46,6 +46,7 @@ library | |
data-default, | ||
deepseq, | ||
directory, | ||
dlist, | ||
extra, | ||
fuzzy, | ||
filepath, | ||
|
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
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
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.