forked from TokTok/hs-cimple
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Generalised traverseAst to include mapAst.
This is done by teaching the type checker more about what the result of a mapping looks like. This avoids some need for type annotations when using this function.
- Loading branch information
Showing
8 changed files
with
174 additions
and
80 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# WARNING: Actions in this file can access repository secrets. They should never | ||
# execute code of the pull request. All scripts should be fetched from merged | ||
# TokTok code. | ||
name: checks | ||
|
||
on: | ||
pull_request_target: | ||
branches: [master] | ||
|
||
jobs: | ||
check-release: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: Checkout TokTok/ci-tools | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: TokTok/ci-tools | ||
path: ci-tools | ||
|
||
- name: Check version against GitHub releases | ||
env: | ||
GH_USER: ${{ secrets.GH_USER }} | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
run: $GITHUB_WORKSPACE/ci-tools/bin/check_release |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: publish | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
release: | ||
types: [released] | ||
|
||
jobs: | ||
hackage: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Checkout TokTok/ci-tools | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: TokTok/ci-tools | ||
path: ci-tools | ||
|
||
- uses: actions/setup-haskell@v1 | ||
with: | ||
ghc-version: "8.10.3" | ||
cabal-version: "3.2" | ||
|
||
- name: Cache | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-cabal | ||
with: | ||
path: | | ||
~/.cabal/packages | ||
~/.cabal/store | ||
dist-newstyle | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- name: Build haddock documentation | ||
run: cabal haddock --haddock-for-hackage --enable-doc | ||
|
||
- name: Publish package candidate to Hackage | ||
if: ${{ github.event_name == 'push' }} | ||
env: | ||
API_TOKEN_HACKAGE: ${{ secrets.API_TOKEN_HACKAGE }} | ||
run: $GITHUB_WORKSPACE/ci-tools/bin/hackage_upload candidate | ||
|
||
- name: Publish package to Hackage | ||
if: ${{ github.event_name == 'release' }} | ||
env: | ||
API_TOKEN_HACKAGE: ${{ secrets.API_TOKEN_HACKAGE }} | ||
run: $GITHUB_WORKSPACE/ci-tools/bin/hackage_upload |
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