Skip to content

Commit 74ab360

Browse files
authored
Merge pull request #77 from input-output-hk/js/update-fourmolu-ghc
Update GHC and fourmolu
2 parents 809b3ff + 85f2739 commit 74ab360

File tree

16 files changed

+85
-134
lines changed

16 files changed

+85
-134
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
ghc: ["8.10.7", "9.2.8", "9.6.4", "9.8.1", "9.10.1"]
20+
ghc: ["9.6.7", "9.8.4", "9.10.2", "9.12.2"]
2121
os: [ubuntu-latest]
2222
steps:
2323
- uses: actions/checkout@v3
@@ -31,7 +31,7 @@ jobs:
3131
run: cabal update
3232

3333
- name: Cabal Configure
34-
run: cabal configure --enable-tests --enable-benchmarks --write-ghc-environment-files=always
34+
run: cabal configure --enable-tests --write-ghc-environment-files=always
3535

3636
- uses: actions/cache@v3
3737
if: matrix.os != 'macos-latest'
@@ -72,12 +72,11 @@ jobs:
7272

7373
- name: Install fourmolu
7474
run: |
75-
FOURMOLU_VERSION="0.14.0.0"
75+
FOURMOLU_VERSION="0.18.0.0"
7676
mkdir -p "$HOME/.local/bin"
7777
curl -sL "https://github.com/fourmolu/fourmolu/releases/download/v${FOURMOLU_VERSION}/fourmolu-${FOURMOLU_VERSION}-linux-x86_64" -o "$HOME/.local/bin/fourmolu"
7878
chmod a+x "$HOME/.local/bin/fourmolu"
7979
echo "$HOME/.local/bin" >> $GITHUB_PATH
8080
8181
- name: Run fourmolu
8282
run: ./scripts/fourmolize.sh
83-

cuddle.cabal

Lines changed: 9 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -19,29 +19,8 @@ extra-doc-files: CHANGELOG.md
1919
common warnings
2020
ghc-options: -Wall -Werror
2121

22-
common ghc2021
23-
-- These options are all on by default in GHC2021, so once we drop GHC8 we
24-
-- can remove this section.
25-
default-extensions:
26-
DataKinds
27-
DeriveGeneric
28-
DeriveTraversable
29-
FlexibleContexts
30-
FlexibleInstances
31-
GeneralizedNewtypeDeriving
32-
ImportQualifiedPost
33-
InstanceSigs
34-
MultiParamTypeClasses
35-
NamedFieldPuns
36-
PolyKinds
37-
RankNTypes
38-
ScopedTypeVariables
39-
StandaloneDeriving
40-
TypeApplications
41-
TypeSynonymInstances
42-
4322
library
44-
import: warnings, ghc2021
23+
import: warnings
4524
exposed-modules:
4625
Codec.CBOR.Cuddle.CBOR.Gen
4726
Codec.CBOR.Cuddle.CDDL
@@ -64,7 +43,7 @@ library
6443

6544
-- other-extensions:
6645
build-depends:
67-
, base >=4.14.0.0
46+
, base >=4.18.3.0
6847
, base16-bytestring
6948
, boxes
7049
, bytestring
@@ -88,11 +67,11 @@ library
8867
, tree-diff
8968

9069
hs-source-dirs: src
91-
default-language: Haskell2010
70+
default-language: GHC2021
9271

9372
executable example
94-
import: warnings, ghc2021
95-
default-language: Haskell2010
73+
import: warnings
74+
default-language: GHC2021
9675
other-modules:
9776
Conway
9877
Monad
@@ -109,8 +88,8 @@ executable example
10988
, text
11089

11190
executable cuddle
112-
import: warnings, ghc2021
113-
default-language: Haskell2010
91+
import: warnings
92+
default-language: GHC2021
11493
hs-source-dirs: ./bin/
11594
main-is: Main.hs
11695
build-depends:
@@ -126,8 +105,8 @@ executable cuddle
126105
, text
127106

128107
test-suite cuddle-test
129-
import: warnings, ghc2021
130-
default-language: Haskell2010
108+
import: warnings
109+
default-language: GHC2021
131110
other-modules:
132111
Test.Codec.CBOR.Cuddle.CDDL.Examples
133112
Test.Codec.CBOR.Cuddle.CDDL.Gen

example/Conway.hs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{-# LANGUAGE OverloadedLists #-}
22
{-# LANGUAGE OverloadedStrings #-}
33
{-# LANGUAGE NoImplicitPrelude #-}
4-
{-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}
54

6-
{-# HLINT ignore "Use camelCase" #-}
7-
{-# HLINT ignore "Evaluate" #-}
5+
{- HLINT ignore "Use camelCase" -}
6+
{- HLINT ignore "Evaluate" -}
87

98
module Conway where
109

example/Monad.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{-# LANGUAGE OverloadedLists #-}
22
{-# LANGUAGE OverloadedStrings #-}
33
{-# LANGUAGE RecursiveDo #-}
4-
{-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}
54

6-
{-# HLINT ignore "Use camelCase" #-}
5+
{- HLINT ignore "Use camelCase" -}
76

87
module Monad where
98

src/Codec/CBOR/Cuddle/CBOR/Gen.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
{-# LANGUAGE LambdaCase #-}
66
{-# LANGUAGE OverloadedStrings #-}
77
{-# LANGUAGE PatternSynonyms #-}
8-
{-# LANGUAGE ScopedTypeVariables #-}
9-
{-# LANGUAGE TypeApplications #-}
108
{-# LANGUAGE ViewPatterns #-}
11-
{-# OPTIONS_GHC -Wno-unticked-promoted-constructors #-}
129

1310
-- | Generate example CBOR given a CDDL specification
1411
module Codec.CBOR.Cuddle.CBOR.Gen (generateCBORTerm, generateCBORTerm') where

src/Codec/CBOR/Cuddle/CDDL.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{-# LANGUAGE DeriveAnyClass #-}
22
{-# LANGUAGE DerivingStrategies #-}
3-
{-# OPTIONS_GHC -Wno-orphans #-}
43

54
-- | This module defined the data structure of CDDL as specified in
65
-- https://datatracker.ietf.org/doc/rfc8610/

src/Codec/CBOR/Cuddle/CDDL/Resolve.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
{-# LANGUAGE DataKinds #-}
33
{-# LANGUAGE DerivingVia #-}
44
{-# LANGUAGE LambdaCase #-}
5-
-- {-# LANGUAGE OverloadedRecordDot #-}
65
{-# LANGUAGE OverloadedStrings #-}
76
{-# LANGUAGE UndecidableInstances #-}
87
{-# LANGUAGE ViewPatterns #-}

src/Codec/CBOR/Cuddle/Comments.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22
{-# LANGUAGE DefaultSignatures #-}
33
{-# LANGUAGE DeriveAnyClass #-}
44
{-# LANGUAGE DerivingStrategies #-}
5-
{-# LANGUAGE EmptyCase #-}
65
{-# LANGUAGE LambdaCase #-}
76
{-# LANGUAGE OverloadedStrings #-}
8-
{-# LANGUAGE TypeOperators #-}
97

108
module Codec.CBOR.Cuddle.Comments (
119
HasComment (..),

src/Codec/CBOR/Cuddle/Huddle.hs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
{-# LANGUAGE AllowAmbiguousTypes #-}
1+
{-# LANGUAGE DataKinds #-}
22
{-# LANGUAGE DuplicateRecordFields #-}
33
{-# LANGUAGE FunctionalDependencies #-}
4-
{-# LANGUAGE GADTs #-}
54
{-# LANGUAGE LambdaCase #-}
65
{-# LANGUAGE OverloadedStrings #-}
7-
{-# LANGUAGE PartialTypeSignatures #-}
8-
{-# LANGUAGE TypeApplications #-}
96
{-# LANGUAGE TypeFamilies #-}
10-
{-# LANGUAGE UndecidableInstances #-}
11-
{-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}
127

138
-- | Module for building CDDL in Haskell
149
--

src/Codec/CBOR/Cuddle/Huddle/HuddleM.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
{-# LANGUAGE DataKinds #-}
2+
13
-- | Monad for declaring Huddle constructs
24
module Codec.CBOR.Cuddle.Huddle.HuddleM (
35
module Huddle,

0 commit comments

Comments
 (0)