Skip to content

Commit d2e5e2e

Browse files
authored
GitHub actions, full CI matrix and nightly
1 parent c2805e4 commit d2e5e2e

19 files changed

+252
-70
lines changed

.circleci/config.yml

-66
This file was deleted.

.github/workflows/ci.yml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: main
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
matrix:
14+
stack-yaml:
15+
- stack.yaml # ghc-9.0
16+
- stack-lts-18.28.yaml # ghc-8.10
17+
- stack-lts-16.31.yaml # ghc-8.8
18+
- stack-lts-14.27.yaml # ghc-8.6
19+
- stack-lts-12.26.yaml # ghc-8.4
20+
fail-fast: false
21+
22+
steps:
23+
- uses: actions/checkout@v2
24+
- uses: freckle/stack-cache-action@v2
25+
with:
26+
stack-yaml: ${{ matrix.stack-yaml }}
27+
- uses: freckle/stack-action@v3
28+
with:
29+
stack-yaml: ${{ matrix.stack-yaml }}
30+
31+
lint:
32+
runs-on: ubuntu-latest
33+
steps:
34+
- uses: actions/checkout@v2
35+
- uses: rwe/actions-hlint-setup@v1
36+
- uses: rwe/actions-hlint-run@v2
37+
with:
38+
fail-on: warning
39+
40+
nightly:
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v2
44+
- uses: freckle/stack-cache-action@v2
45+
with:
46+
stack-yaml: stack-nightly.yaml
47+
- uses: freckle/stack-action@v3
48+
with:
49+
stack-yaml: stack-nightly.yaml
50+
stack-arguments: --resolver nightly

.github/workflows/release.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches: main
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
13+
- id: tag
14+
uses: freckle/haskell-tag-action@v1
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
18+
- if: steps.tag.outputs.tag
19+
uses: freckle/stack-upload-action@v2
20+
env:
21+
HACKAGE_API_KEY: ${{ secrets.HACKAGE_UPLOAD_API_KEY }}

.hlint.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- ignore: {name: "Redundant do", within: spec}
2+
- ignore: {name: "Reduce duplication", within: spec}

.stylish-haskell.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
steps:
3+
- simple_align:
4+
cases: false
5+
top_level_patterns: false
6+
records: false
7+
- imports:
8+
align: none
9+
list_align: after_alias
10+
pad_module_names: false
11+
long_list_align: new_line_multiline
12+
empty_list_align: right_after
13+
list_padding: 2
14+
separate_lists: false
15+
space_surround: false
16+
- language_pragmas:
17+
style: vertical
18+
align: false
19+
remove_redundant: false
20+
- trailing_whitespace: {}
21+
columns: 80
22+
newline: native
23+
cabal: true

brittany.yaml

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
---
2+
conf_debug:
3+
dconf_roundtrip_exactprint_only: false
4+
dconf_dump_bridoc_simpl_par: false
5+
dconf_dump_ast_unknown: false
6+
dconf_dump_bridoc_simpl_floating: false
7+
dconf_dump_config: false
8+
dconf_dump_bridoc_raw: false
9+
dconf_dump_bridoc_final: false
10+
dconf_dump_bridoc_simpl_alt: false
11+
dconf_dump_bridoc_simpl_indent: false
12+
dconf_dump_annotations: false
13+
dconf_dump_bridoc_simpl_columns: false
14+
dconf_dump_ast_full: false
15+
conf_forward:
16+
options_ghc:
17+
- -XBangPatterns
18+
- -XConstraintKinds
19+
- -XDataKinds
20+
- -XDeriveDataTypeable
21+
- -XDeriveGeneric
22+
- -XDoAndIfThenElse
23+
- -XEmptyDataDecls
24+
- -XFlexibleContexts
25+
- -XFlexibleInstances
26+
- -XFunctionalDependencies
27+
- -XGADTs
28+
- -XKindSignatures
29+
- -XLambdaCase
30+
- -XMultiParamTypeClasses
31+
- -XMultiWayIf
32+
- -XNamedFieldPuns
33+
- -XNoImplicitPrelude
34+
- -XNoMonomorphismRestriction
35+
- -XOverloadedStrings
36+
- -XPolyKinds
37+
- -XQuasiQuotes
38+
- -XRank2Types
39+
- -XRecordWildCards
40+
- -XScopedTypeVariables
41+
- -XStandaloneDeriving
42+
- -XTemplateHaskell
43+
- -XTupleSections
44+
- -XTypeApplications
45+
- -XTypeFamilies
46+
- -XTypeOperators
47+
- -XViewPatterns
48+
conf_errorHandling:
49+
econf_ExactPrintFallback: ExactPrintFallbackModeInline
50+
econf_Werror: false
51+
econf_omit_output_valid_check: false
52+
econf_produceOutputOnErrors: false
53+
conf_preprocessor:
54+
ppconf_CPPMode: CPPModeAbort
55+
ppconf_hackAroundIncludes: false
56+
conf_obfuscate: false
57+
conf_roundtrip_exactprint_only: false
58+
conf_version: 1
59+
conf_layout:
60+
lconfig_reformatModulePreamble: false
61+
lconfig_altChooser:
62+
tag: AltChooserBoundedSearch
63+
contents: 3
64+
lconfig_allowSingleLineExportList: false
65+
lconfig_importColumn: 60
66+
lconfig_hangingTypeSignature: false
67+
lconfig_importAsColumn: 50
68+
lconfig_alignmentLimit: 1
69+
lconfig_indentListSpecial: true
70+
lconfig_indentAmount: 2
71+
lconfig_alignmentBreakOnMultiline: true
72+
lconfig_cols: 80
73+
lconfig_indentPolicy: IndentPolicyLeft
74+
lconfig_indentWhereSpecial: true
75+
lconfig_columnAlignMode:
76+
tag: ColumnAlignModeDisabled
77+
contents: 0.7

library/Closed/Internal.hs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1+
{-# LANGUAGE CPP #-}
12
{-# LANGUAGE DataKinds #-}
23
{-# LANGUAGE DeriveGeneric #-}
3-
{-# LANGUAGE ExplicitForAll #-}
44
{-# LANGUAGE FlexibleContexts #-}
5-
{-# LANGUAGE KindSignatures #-}
6-
{-# LANGUAGE CPP #-}
75
{-# LANGUAGE ScopedTypeVariables #-}
86
{-# LANGUAGE TypeApplications #-}
97
{-# LANGUAGE TypeFamilies #-}

stack-lts-12.26.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
resolver: lts-12.26

stack-lts-12.26.yaml.lock

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This file was autogenerated by Stack.
2+
# You should not edit this file by hand.
3+
# For more information, please see the documentation at:
4+
# https://docs.haskellstack.org/en/stable/lock_files
5+
6+
packages: []
7+
snapshots:
8+
- completed:
9+
size: 509471
10+
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/12/26.yaml
11+
sha256: 95f014df58d0679b1c4a2b7bf2b652b61da8d30de5f571abb0d59015ef678646
12+
original: lts-12.26

stack-lts-14.27.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
resolver: lts-14.27

stack-lts-14.27.yaml.lock

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This file was autogenerated by Stack.
2+
# You should not edit this file by hand.
3+
# For more information, please see the documentation at:
4+
# https://docs.haskellstack.org/en/stable/lock_files
5+
6+
packages: []
7+
snapshots:
8+
- completed:
9+
size: 524996
10+
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/14/27.yaml
11+
sha256: 7ea31a280c56bf36ff591a7397cc384d0dff622e7f9e4225b47d8980f019a0f0
12+
original: lts-14.27

stack-lts-16.31.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
resolver: lts-16.31

stack-lts-16.31.yaml.lock

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This file was autogenerated by Stack.
2+
# You should not edit this file by hand.
3+
# For more information, please see the documentation at:
4+
# https://docs.haskellstack.org/en/stable/lock_files
5+
6+
packages: []
7+
snapshots:
8+
- completed:
9+
size: 534126
10+
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/16/31.yaml
11+
sha256: 637fb77049b25560622a224845b7acfe81a09fdb6a96a3c75997a10b651667f6
12+
original: lts-16.31

stack-lts-18.28.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
resolver: lts-18.28

stack-lts-18.28.yaml.lock

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This file was autogenerated by Stack.
2+
# You should not edit this file by hand.
3+
# For more information, please see the documentation at:
4+
# https://docs.haskellstack.org/en/stable/lock_files
5+
6+
packages: []
7+
snapshots:
8+
- completed:
9+
size: 590100
10+
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/18/28.yaml
11+
sha256: 428ec8d5ce932190d3cbe266b9eb3c175cd81e984babf876b64019e2cbe4ea68
12+
original: lts-18.28

stack-nightly.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
resolver: nightly-2022-03-30

stack-nightly.yaml.lock

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This file was autogenerated by Stack.
2+
# You should not edit this file by hand.
3+
# For more information, please see the documentation at:
4+
# https://docs.haskellstack.org/en/stable/lock_files
5+
6+
packages: []
7+
snapshots:
8+
- completed:
9+
size: 539378
10+
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/nightly/2022/3/30.yaml
11+
sha256: 745431a4c5b78cc93d81e99b2253a1e0eacd4f94e00cf17dab7cc14e665332e3
12+
original: nightly-2022-03-30

stack.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
resolver: lts-13.1
1+
resolver: lts-19.1

stack.yaml.lock

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This file was autogenerated by Stack.
2+
# You should not edit this file by hand.
3+
# For more information, please see the documentation at:
4+
# https://docs.haskellstack.org/en/stable/lock_files
5+
6+
packages: []
7+
snapshots:
8+
- completed:
9+
size: 617355
10+
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/19/1.yaml
11+
sha256: cbd5e8593869445794924668479b5bd9f1738d075898623dceacc13b2576b6e3
12+
original: lts-19.1

0 commit comments

Comments
 (0)