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.
With these two commits I was able to build this repo on macOS with
hadrian/build.stack.sh --configure --flavour=quickest -j
hadrian/build.stack.sh --configure --flavour=quickest -j --integer-simple
.The first commit was suggested by @cocreature, so thanks for that!
I took the second commit from a "temporary hack" I found on an issue in the archived hadrian repo, so I'm not sure if it's the best solution, or if it will cause any problems on Linux. I'll make a PR to daml to rule out the latter.The second commit simply adds a qualified import of
Prelude
to theParser.y
file, since versions of Happy newer than 1.19 apparently don't automatically import thePrelude
. This was also suggested by @cocreature :)Finally, I still needed to add the
--integer-simple
flag to get a build on macOS. This is not ideal, but works for now. I've documented the workaround on the Working onghc-lib
guide in the corresponding daml PR