Skip to content

Commit 4311ade

Browse files
Merge branch 'haskell:main' into alternative
2 parents e200f86 + 93f7fe5 commit 4311ade

2 files changed

Lines changed: 75 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: CI
2+
3+
# Trigger the workflow on push or pull request, but only for the main branch
4+
on:
5+
pull_request:
6+
branches: [ "main" ]
7+
push:
8+
branches: [ "main" ]
9+
10+
jobs:
11+
ghc:
12+
name: "GHC ${{ matrix.ghc }} on ${{ matrix.os }}"
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
matrix:
16+
os: [ubuntu-latest, macos-latest, windows-latest]
17+
ghc: ['8.10', '9.2', '9.8', '9.10', '9.12']
18+
exclude:
19+
- os: macos-latest
20+
ghc: '8.10' # ghc-8.10 does not support ARM
21+
fail-fast: false
22+
steps:
23+
- name: Checkout base repo
24+
uses: actions/checkout@v4
25+
26+
- name: Set up Haskell
27+
id: setup-haskell
28+
uses: haskell-actions/setup@v2
29+
with:
30+
ghc-version: ${{ matrix.ghc }}
31+
cabal-version: 'latest'
32+
33+
- name: Configure
34+
run: cabal new-configure
35+
36+
- name: Freeze
37+
run: cabal freeze
38+
39+
- name: Cache
40+
uses: actions/cache@v4
41+
with:
42+
path: ${{ steps.setup-haskell.outputs.cabal-store }}
43+
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
44+
restore-keys: ${{ runner.os }}-${{ matrix.ghc }}-
45+
46+
- name: Build
47+
run: cabal build
48+
49+
mhs:
50+
runs-on: ubuntu-latest
51+
steps:
52+
- name: checkout mhs repo
53+
uses: actions/checkout@v4
54+
with:
55+
repository: augustss/MicroHs
56+
ref: v0.14.15.0
57+
path: mhs
58+
59+
- name: make and install mhs
60+
run: |
61+
cd mhs
62+
make minstall
63+
64+
- name: checkout transformers repo
65+
uses: actions/checkout@v4
66+
with:
67+
path: transformers
68+
69+
- name: compile and install transformers package
70+
run: |
71+
PATH="$HOME/.mcabal/bin:$PATH"
72+
cd transformers
73+
mcabal install

Control/Monad/Trans/Cont.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ newtype ContT r m a = ContT { runContT :: (a -> m r) -> m r }
150150
-- final continuation.
151151
--
152152
-- * @'evalContT' ('lift' m) = m@
153-
evalContT :: (Monad m) => ContT r m r -> m r
154-
evalContT m = runContT m return
153+
evalContT :: Applicative m => ContT r m r -> m r
154+
evalContT m = runContT m pure
155155
{-# INLINE evalContT #-}
156156

157157
-- | Apply a function to transform the result of a continuation-passing

0 commit comments

Comments
 (0)