Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 24 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
cabal: ["3.8"]
ghc: ["9.4.4"]
cabal: ["3.14"]
ghc: ["9.12.2"]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: haskell/actions/setup@v2
- uses: haskell-actions/setup@v2
name: Setup Haskell
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}

- uses: actions/cache@v3
- uses: actions/cache@v4
name: Cache ~/.cabal/store
with:
path: ~/.cabal/store
Expand All @@ -40,18 +40,18 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
cabal: ["3.8"]
ghc: ["9.4.4"]
cabal: ["3.14"]
ghc: ["9.12.2"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: haskell/actions/setup@v2
- uses: haskell-actions/setup@v2
name: Setup Haskell
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}

- uses: actions/cache@v3
- uses: actions/cache@v4
name: Cache ~/.cabal/store
with:
path: ~/.cabal/store
Expand All @@ -75,18 +75,18 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
cabal: ["3.8"]
ghc: ["9.4.4"]
cabal: ["3.14"]
ghc: ["9.12.2"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: haskell/actions/setup@v2
- uses: haskell-actions/setup@v2
name: Setup Haskell
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}

- uses: actions/cache@v3
- uses: actions/cache@v4
name: Cache ~/.cabal/store
with:
path: ~/.cabal/store
Expand All @@ -110,18 +110,18 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
cabal: ["3.8"]
ghc: ["9.4.4"]
cabal: ["3.14"]
ghc: ["9.12.2"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: haskell/actions/setup@v2
- uses: haskell-actions/setup@v2
name: Setup Haskell
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}

- uses: actions/cache@v3
- uses: actions/cache@v4
name: Cache ~/.cabal/store
with:
path: ~/.cabal/store
Expand All @@ -136,12 +136,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
cabal: ["3.8"]
ghc: ["9.4.4"]
cabal: ["3.14"]
ghc: ["9.12.2"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: haskell/actions/setup@v2
- uses: haskell-actions/setup@v2
name: Setup Haskell
with:
ghc-version: ${{ matrix.ghc }}
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,9 @@ If you're on Linux or macOS, then the process is easy:
terminal

```shell
ghcup install ghc 9.2.4
ghcup set ghc 9.2.4
ghcup install cabal 3.2.0.0
ghcup install ghc 9.12.2
ghcup set ghc 9.12.2
ghcup install cabal 3.14.0.0
```
3. Run `cabal update` to fetch the latest info about Haskell packages.

Expand Down
25 changes: 20 additions & 5 deletions learn4haskell.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,18 @@ extra-doc-files: README.md
tested-with: GHC == 8.10.4
GHC == 9.0.2
GHC == 9.2.7
GHC == 9.4.4
GHC == 9.4.7
GHC == 9.6.7
GHC == 9.8.4
GHC == 9.10.3
GHC == 9.12.2

source-repository head
type: git
location: https://github.com/kowainik/learn4haskell.git

common common-options
build-depends: base >= 4.14.0.0 && < 4.18
build-depends: base >= 4.14.0.0 && < 4.23

ghc-options: -Wall
-Wcompat
Expand All @@ -44,16 +48,27 @@ common common-options
if impl(ghc >= 9.2)
ghc-options: -Woperator-whitespace
-Wredundant-bang-patterns
if impl(ghc >= 9.4 && < 9.10)
ghc-options: -Wforall-identifier
if impl(ghc >= 9.4)
ghc-options: -Wredundant-strictness-flags
-Wforall-identifier
if impl(ghc >= 9.8)
ghc-options: -Wterm-variable-capture
-Winconsistent-flags
if impl(ghc >= 9.10)
ghc-options: -Wincomplete-record-selectors
-Wdeprecated-type-abstractions
-Wdata-kinds-tc
-Wdefaulted-exception-context
if impl(ghc >= 9.12)
ghc-options: -Wview-pattern-signatures

default-language: Haskell2010

common common-doctest
import: common-options
hs-source-dirs: test
build-depends: doctest >= 0.17 && < 0.22
build-depends: doctest >= 0.17 && < 0.25
ghc-options: -threaded

library
Expand All @@ -74,7 +89,7 @@ test-suite learn4haskell-test
Test.Chapter3
Test.Chapter4
build-depends: learn4haskell
, hspec >= 2.7.4 && < 2.11
, hspec >= 2.7.4 && < 2.12
, hspec-hedgehog
, hedgehog >= 1.0.2 && < 2
ghc-options: -threaded
Expand Down
Loading