Skip to content

Commit aafbf63

Browse files
authored
Merge pull request #713 from haskell-CI/cabal-docspec-20240414
cabal-docspec-0.0.0.20240414
2 parents e81a202 + 95a3b53 commit aafbf63

File tree

9 files changed

+23
-8
lines changed

9 files changed

+23
-8
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ jobs:
177177
- name: install cabal-docspec
178178
run: |
179179
mkdir -p $HOME/.cabal/bin
180-
curl -sL https://github.com/phadej/cabal-extras/releases/download/cabal-docspec-0.0.0.20231219/cabal-docspec-0.0.0.20231219-x86_64-linux.xz > cabal-docspec.xz
181-
echo '8b60448275466bbe2b9409741b5dd07a41c541283017b95b44efe6e31379d067 cabal-docspec.xz' | sha256sum -c -
180+
curl -sL https://github.com/phadej/cabal-extras/releases/download/cabal-docspec-0.0.0.20240414/cabal-docspec-0.0.0.20240414-x86_64-linux.xz > cabal-docspec.xz
181+
echo '2d18a3f79619e8ec5f11870f926f6dc2616e02a6c889315b7f82044b95a1adb9 cabal-docspec.xz' | sha256sum -c -
182182
xz -d < cabal-docspec.xz > $HOME/.cabal/bin/cabal-docspec
183183
rm -f cabal-docspec.xz
184184
chmod a+x $HOME/.cabal/bin/cabal-docspec

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
HC ?= ghc-9.2.8
1+
HC ?= ghc-9.8.2
22

33
build :
44
cabal v2-build -w $(HC)

haskell-ci.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cabal-version: 2.2
22
name: haskell-ci
3-
version: 0.19.20240402
3+
version: 0.19.20240414
44
synopsis: Cabal package script generator for Travis-CI
55
description:
66
Script generator (@haskell-ci@) for

src/HaskellCI/Config/Docspec.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ defaultDocspecConfig :: DocspecConfig
2828
defaultDocspecConfig = DocspecConfig
2929
{ cfgDocspecEnabled = noVersion
3030
, cfgDocspecOptions = []
31-
, cfgDocspecUrl = "https://github.com/phadej/cabal-extras/releases/download/cabal-docspec-0.0.0.20231219/cabal-docspec-0.0.0.20231219-x86_64-linux.xz"
32-
, cfgDocspecHash = "8b60448275466bbe2b9409741b5dd07a41c541283017b95b44efe6e31379d067"
31+
, cfgDocspecUrl = "https://github.com/phadej/cabal-extras/releases/download/cabal-docspec-0.0.0.20240414/cabal-docspec-0.0.0.20240414-x86_64-linux.xz"
32+
, cfgDocspecHash = "2d18a3f79619e8ec5f11870f926f6dc2616e02a6c889315b7f82044b95a1adb9"
3333
}
3434

3535
-------------------------------------------------------------------------------

src/HaskellCI/Config/Installed.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ import qualified Distribution.Pretty as C
99
import qualified Distribution.Types.PackageName as C
1010
import qualified Text.PrettyPrint as PP
1111

12+
-- $setup
13+
-- >>> import qualified Distribution.Parsec as C
14+
1215
-------------------------------------------------------------------------------
1316
-- Single action
1417
-------------------------------------------------------------------------------

src/HaskellCI/Config/Jobs.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ import qualified Distribution.Parsec as C
77
import qualified Distribution.Pretty as C
88
import qualified Text.PrettyPrint as PP
99

10+
-- $setup
11+
-- >>> import qualified Distribution.Parsec as C
12+
1013
-- | Jobs
1114
--
1215
-- * @N:M@ - @N@ ghcs (cabal -j), @M@ threads (ghc -j)

src/HaskellCI/GitHub.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
module HaskellCI.GitHub (
66
makeGitHub,
77
githubHeader,
8+
-- * For tests
9+
parseGitHubRepo,
810
) where
911

1012
import HaskellCI.Prelude

src/HaskellCI/ShVersionRange.hs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
module HaskellCI.ShVersionRange (
22
compilerVersionPredicate,
33
compilerVersionArithPredicate,
4-
) where
4+
roundDown,
5+
) where
56

67
import HaskellCI.Prelude
78

@@ -16,6 +17,8 @@ import HaskellCI.Compiler
1617

1718
-- $setup
1819
-- >>> import Distribution.Pretty (prettyShow)
20+
-- >>> import qualified Data.Set as S
21+
-- >>> import qualified Distribution.Version as C
1922

2023
compilerVersionPredicate :: Set CompilerVersion -> CompilerRange -> String
2124
compilerVersionPredicate = compilerVersionPredicateImpl (toTest . freeToArith) where

src/HaskellCI/YamlSyntax.hs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ module HaskellCI.YamlSyntax (
1313
(~>),
1414
ykeyValuesFilt,
1515
ylistFilt,
16-
) where
16+
-- * Exported for tests
17+
encodeYAMLString,
18+
hexChar,
19+
) where
1720

1821
import HaskellCI.Prelude
1922
import Prelude ()
@@ -43,6 +46,7 @@ import Numeric (showHex)
4346

4447
-- $setup
4548
-- >>> :set -XOverloadedStrings
49+
-- >>> import qualified Data.Aeson as Aeson
4650

4751
-------------------------------------------------------------------------------
4852
-- Yaml syntx

0 commit comments

Comments
 (0)