-
Notifications
You must be signed in to change notification settings - Fork 81
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
Multi target haskell_repl #736
Merged
Merged
Changes from 14 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
1193ab7
More flexible get_libs_for_ghc_linker
aherrmann 60f6691
ghci: remove SCRIPT_LOCATION
aherrmann 4ee0c4c
Prefix -ghci-script by exec root
aherrmann 0742618
Factor out environment variable generation
aherrmann 69e9172
Use render_env for ghci_repl_wrapper.sh
aherrmann cb50935
make_path: Deduplicate directories
aherrmann a15d14b
Multi target REPL
aherrmann 6ab0875
Add test cases for haskell_multi REPL
aherrmann 3ef1b1c
ghci_script: Avoid name shadowing
aherrmann c4b86c6
Compose HaskellReplInfo of LoadInfo and DepInfo
aherrmann a47d1c9
Always require HaskellBuildInfo
aherrmann 893f514
Cross-platform runfiles handling in repl
aherrmann 0976c96
_merge_HaskellReplCollectInfo take list
aherrmann 53b9292
Rename include/exclude attributes
aherrmann af40bb4
Factor out link_libraries
aherrmann 96ddda4
Add comment explaining `:add *...` syntax
aherrmann 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
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
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
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.
Wouldn't it be possible to factor all this file out with the new
haskell_repl
rule?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.
Not quite at the moment.
haskell_repl
is its own rule and can return aDefaultInto
and thereby properly use runfiles.haskell/private/actions/repl.bzl
creates an extra output in the regularhaskell_*
rules and cannot return a dedicatedDefaultInfo
with runfiles. Instead it has to use theln
trick to force it's dependencies and refer to them inbazel-out
.I agree that there is duplication that we don't want to keep around in the long term. One possible way forward could be to drop
haskell/private/actions/repl.bzl
completely and replace it by thehaskell/repl.bzl
aspect, similar tohaskell/haddock.bzl
. But, I'd prefer to do that in a separate PR.