From 9faacd0503398ab05388ee8649b3f987e488f64c Mon Sep 17 00:00:00 2001 From: Simon Hengel Date: Sun, 7 Dec 2025 09:52:26 +0700 Subject: [PATCH 1/4] mhs-ci --- .github/workflows/mhs.yml | 182 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 182 insertions(+) create mode 100644 .github/workflows/mhs.yml diff --git a/.github/workflows/mhs.yml b/.github/workflows/mhs.yml new file mode 100644 index 0000000..fcd6ad9 --- /dev/null +++ b/.github/workflows/mhs.yml @@ -0,0 +1,182 @@ +name: MicroHs + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: checkout mhs repo + uses: actions/checkout@v4 + with: + repository: augustss/MicroHs + path: mhs + - name: make and install mhs + run: | + cd mhs + make minstall + echo "$HOME/.mcabal/bin" >> "$GITHUB_PATH" + + # ghc-compat + # must be installed before any other packages since there is an implicit dependency on ghc-compat + - name: compile and install ghc-compat package + run: | + mcabal install ghc-compat + + # array-mhs + - name: compile and install array-mhs package + run: | + mcabal install array + + # containers + - name: compile and install containers package + run: | + mcabal install containers + + # transformers + - name: compile and install transformers package + run: | + mcabal install transformers + + # time + - name: compile and install time package + run: | + mcabal install time + + - name: compile and install polyparse + run: | + mcabal install polyparse + + - name: compile and install cpphs + run: | + mcabal install cpphs + + # malcolm-wallace-universe + # this have not been uploaded to hackage + - name: checkout malcolm-wallace-universe repo + uses: actions/checkout@v4 + with: + repository: hackage-trustees/malcolm-wallace-universe + path: malcolm-wallace-universe + - name: compile and install hscolour + run: | + cd malcolm-wallace-universe/hscolour-1.24.4 + mcabal install + + # mtl-mhs + - name: compile and install mtl-mhs package + run: | + mcabal install mtl + + # pretty + # not yet uploaded to hackage + - name: compile and install pretty package + run: | + mcabal install --git=http://github.com/haskell/pretty.git pretty + + # parsec + # patch not merged and uploaded to hackage + - name: compile and install parsec package + run: | + mcabal install --git=http://github.com/augustss/parsec.git parsec + + # splitmix + - name: compile and install splitmix package + run: | + mcabal install splitmix + + # random-mhs + - name: compile and install random-mhs package + run: | + mcabal install random + + # granite + # not on hackage at all + - name: checkout granite repo + uses: actions/checkout@v4 + with: + repository: mchav/granite + path: granite + - name: compile and install granite package + run: | + cd granite + mcabal install + + # split + - name: compile and install split package + run: | + mcabal install split + + # monad-loops + - name: compile and install monad-loops package + run: | + mcabal install monad-loops + + # tagged + # not uploaded to hackage + - name: compile and install tagged package + run: | + mcabal install --git=http://github.com/ekmett/tagged.git tagged + + # exceptions + # not uploaded to hackage + - name: compile and install exceptions package + run: | + mcabal install --git=http://github.com/ekmett/exceptions.git exceptions + + # os-string + # not merged and uploaded to hackage + - name: compile and install os-string package + run: | + mcabal install --git=http://github.com/augustss/os-string.git os-string + + # filepath + # not merged and uploaded to hackage + - name: compile and install filepath package + run: | + mcabal install --git=http://github.com/augustss/filepath.git filepath + + # tagsoup + - name: compile and install tagsoup package + run: | + mcabal install tagsoup + + # unordered-containers + # not merged and uploaded to hackage + - name: compile and install unordered-containers package + run: | + mcabal install --git=http://github.com/augustss/unordered-containers.git unordered-containers + + # async + # not merged and uploaded to hackage + - name: compile and install async package + run: | + mcabal install --git=http://github.com/augustss/async.git async + + # QuickCheck + # not in stackage yet + - name: compile and install async package + run: | + mcabal install --git=http://github.com/nick8325/quickcheck QuickCheck + + # colour + - name: compile and install colour package + run: | + mcabal install colour + + # ansi-terminal-types + - name: compile and install ansi-terminal-types package + run: | + mcabal install ansi-terminal-types + + # ansi-terminal + - name: compile and install ansi-terminal package + run: | + mcabal install ansi-terminal From ff6648ef7afc8c9e3504eda5e67440fa9dbfedb0 Mon Sep 17 00:00:00 2001 From: Simon Hengel Date: Mon, 8 Dec 2025 02:43:58 +0700 Subject: [PATCH 2/4] Update mhs.yml --- .github/workflows/mhs.yml | 174 +------------------------------------- 1 file changed, 3 insertions(+), 171 deletions(-) diff --git a/.github/workflows/mhs.yml b/.github/workflows/mhs.yml index fcd6ad9..6246a94 100644 --- a/.github/workflows/mhs.yml +++ b/.github/workflows/mhs.yml @@ -1,9 +1,6 @@ name: MicroHs on: - push: - branches: - - main pull_request: branches: - main @@ -12,171 +9,6 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: checkout mhs repo - uses: actions/checkout@v4 - with: - repository: augustss/MicroHs - path: mhs - - name: make and install mhs - run: | - cd mhs - make minstall - echo "$HOME/.mcabal/bin" >> "$GITHUB_PATH" - - # ghc-compat - # must be installed before any other packages since there is an implicit dependency on ghc-compat - - name: compile and install ghc-compat package - run: | - mcabal install ghc-compat - - # array-mhs - - name: compile and install array-mhs package - run: | - mcabal install array - - # containers - - name: compile and install containers package - run: | - mcabal install containers - - # transformers - - name: compile and install transformers package - run: | - mcabal install transformers - - # time - - name: compile and install time package - run: | - mcabal install time - - - name: compile and install polyparse - run: | - mcabal install polyparse - - - name: compile and install cpphs - run: | - mcabal install cpphs - - # malcolm-wallace-universe - # this have not been uploaded to hackage - - name: checkout malcolm-wallace-universe repo - uses: actions/checkout@v4 - with: - repository: hackage-trustees/malcolm-wallace-universe - path: malcolm-wallace-universe - - name: compile and install hscolour - run: | - cd malcolm-wallace-universe/hscolour-1.24.4 - mcabal install - - # mtl-mhs - - name: compile and install mtl-mhs package - run: | - mcabal install mtl - - # pretty - # not yet uploaded to hackage - - name: compile and install pretty package - run: | - mcabal install --git=http://github.com/haskell/pretty.git pretty - - # parsec - # patch not merged and uploaded to hackage - - name: compile and install parsec package - run: | - mcabal install --git=http://github.com/augustss/parsec.git parsec - - # splitmix - - name: compile and install splitmix package - run: | - mcabal install splitmix - - # random-mhs - - name: compile and install random-mhs package - run: | - mcabal install random - - # granite - # not on hackage at all - - name: checkout granite repo - uses: actions/checkout@v4 - with: - repository: mchav/granite - path: granite - - name: compile and install granite package - run: | - cd granite - mcabal install - - # split - - name: compile and install split package - run: | - mcabal install split - - # monad-loops - - name: compile and install monad-loops package - run: | - mcabal install monad-loops - - # tagged - # not uploaded to hackage - - name: compile and install tagged package - run: | - mcabal install --git=http://github.com/ekmett/tagged.git tagged - - # exceptions - # not uploaded to hackage - - name: compile and install exceptions package - run: | - mcabal install --git=http://github.com/ekmett/exceptions.git exceptions - - # os-string - # not merged and uploaded to hackage - - name: compile and install os-string package - run: | - mcabal install --git=http://github.com/augustss/os-string.git os-string - - # filepath - # not merged and uploaded to hackage - - name: compile and install filepath package - run: | - mcabal install --git=http://github.com/augustss/filepath.git filepath - - # tagsoup - - name: compile and install tagsoup package - run: | - mcabal install tagsoup - - # unordered-containers - # not merged and uploaded to hackage - - name: compile and install unordered-containers package - run: | - mcabal install --git=http://github.com/augustss/unordered-containers.git unordered-containers - - # async - # not merged and uploaded to hackage - - name: compile and install async package - run: | - mcabal install --git=http://github.com/augustss/async.git async - - # QuickCheck - # not in stackage yet - - name: compile and install async package - run: | - mcabal install --git=http://github.com/nick8325/quickcheck QuickCheck - - # colour - - name: compile and install colour package - run: | - mcabal install colour - - # ansi-terminal-types - - name: compile and install ansi-terminal-types package - run: | - mcabal install ansi-terminal-types - - # ansi-terminal - - name: compile and install ansi-terminal package - run: | - mcabal install ansi-terminal + - uses: augustss/MicroHs@nightly + - uses: actions/checkout@v4 + - run: mcabal -r build From 8d04459862769839e36b4e358c194012a8ae04eb Mon Sep 17 00:00:00 2001 From: Simon Hengel Date: Mon, 8 Dec 2025 02:45:18 +0700 Subject: [PATCH 3/4] Update mhs.yml --- .github/workflows/mhs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/mhs.yml b/.github/workflows/mhs.yml index 6246a94..3b2a5d4 100644 --- a/.github/workflows/mhs.yml +++ b/.github/workflows/mhs.yml @@ -9,6 +9,6 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: augustss/MicroHs@nightly + - uses: sol/MicroHs@nightly - uses: actions/checkout@v4 - run: mcabal -r build From d709791fc87ec4859915b0cb208861e903abc1d9 Mon Sep 17 00:00:00 2001 From: Simon Hengel Date: Mon, 8 Dec 2025 02:47:59 +0700 Subject: [PATCH 4/4] Update mhs.yml --- .github/workflows/mhs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/mhs.yml b/.github/workflows/mhs.yml index 3b2a5d4..aed859b 100644 --- a/.github/workflows/mhs.yml +++ b/.github/workflows/mhs.yml @@ -9,6 +9,6 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: sol/MicroHs@nightly + - uses: sol/MicroHs@setup-action - uses: actions/checkout@v4 - run: mcabal -r build