-
Notifications
You must be signed in to change notification settings - Fork 40
Make it compile with MicroHs. #270
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| name: mhs-ci | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ "master" ] | ||
| pull_request: | ||
| branches: [ "master" ] | ||
|
|
||
| jobs: | ||
| build-mhs-prettyprinter: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
|
|
||
| - name: checkout mhs repo | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| repository: augustss/MicroHs | ||
| ref: v0.14.27.0 | ||
| path: mhs | ||
| - name: make and install mhs | ||
| run: | | ||
| cd mhs | ||
| make minstall | ||
| # prettyprinter | ||
| - name: checkout prettyprinter repo | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| path: prettyprinter | ||
|
|
||
| - name: compile and install prettyprinter package | ||
| run: | | ||
| PATH="$HOME/.mcabal/bin:$PATH" | ||
| cd prettyprinter/prettyprinter | ||
| mcabal -r install | ||
| - name: compile and install prettyprinter-ansi-terminal package | ||
| run: | | ||
| PATH="$HOME/.mcabal/bin:$PATH" | ||
| cd prettyprinter/prettyprinter-ansi-terminal | ||
| mcabal -r install | ||
| - name: compile and install prettyprinter-compat-annotated-wl-pprint package | ||
| run: | | ||
| PATH="$HOME/.mcabal/bin:$PATH" | ||
| cd prettyprinter/prettyprinter-compat-annotated-wl-pprint | ||
| mcabal -r install | ||
| - name: compile and install prettyprinter-compat-ansi-wl-pprint package | ||
| run: | | ||
| PATH="$HOME/.mcabal/bin:$PATH" | ||
| cd prettyprinter/prettyprinter-compat-ansi-wl-pprint | ||
| mcabal -r install | ||
| - name: compile and install prettyprinter-compat-wl-pprint package | ||
| run: | | ||
| PATH="$HOME/.mcabal/bin:$PATH" | ||
| cd prettyprinter/prettyprinter-compat-wl-pprint | ||
| mcabal -r install | ||
| - name: cleanup | ||
| run: | | ||
| rm -rf $HOME/.mcabal | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -80,17 +80,18 @@ library | |
| , Data.Text.Lazy | ||
| , Data.Text.Lazy.Builder | ||
|
|
||
| if !impl(ghc >= 7.6) | ||
| if !impl(ghc >= 7.6) && !impl(mhs) | ||
| build-depends: ghc-prim | ||
|
|
||
| if impl(ghc >= 8.0) | ||
| ghc-options: -Wcompat | ||
| if !impl(ghc >= 8.0) | ||
| if !impl(ghc >= 8.0) && !impl(mhs) | ||
| build-depends: semigroups >= 0.17 | ||
| build-depends: fail >= 4.9.0.0 && <4.10 | ||
| if !impl(ghc >= 7.10) | ||
| if !impl(ghc >= 7.10) && !impl(mhs) | ||
| build-depends: void >=0.4 && <0.8 | ||
|
|
||
| if impl(mhs) | ||
| cpp-options: -DFOLDABLE_TRAVERSABLE_IN_PRELUDE=0 | ||
|
Comment on lines
+93
to
+94
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't quite understand why this is necessary. Doesn't your modification of
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think you're right. I'll fix it tomorrow.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think you're right. I'll fix it tomorrow. |
||
|
|
||
|
|
||
| Flag buildReadme | ||
|
|
||
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.
This way, we can avoid having to do
PATH="$HOME/.mcabal/bin:$PATH"every time.