Skip to content

Commit 53e5540

Browse files
Soupstrawlehins
andcommitted
Update src/Codec/CBOR/Cuddle/CBOR/Gen.hs
Co-authored-by: Alexey Kuleshevich <[email protected]>
1 parent 26bbc85 commit 53e5540

File tree

5 files changed

+18
-20
lines changed

5 files changed

+18
-20
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272

7373
- name: Install fourmolu
7474
run: |
75-
FOURMOLU_VERSION="0.15.0.0"
75+
FOURMOLU_VERSION="0.14.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"

flake.lock

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nickel.lock.ncl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
organist = import "/nix/store/fjxrgrx0s69m5vkss5ff1i5akjcx39ss-source/lib/organist.ncl",
2+
organist = import "/nix/store/7zrf2b1ysrgrx7613qlmbz71cfyxgyfb-source/lib/organist.ncl",
33
}

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ import System.Random.Stateful (
6464
Random,
6565
RandomGen (..),
6666
StateGenM (..),
67-
StatefulGen (..),
6867
UniformRange (uniformRM),
6968
randomM,
7069
uniformByteStringM,
@@ -418,7 +417,7 @@ generateCBORTerm cddl n stdGen =
418417
in evalGen (genForName n) genEnv genState
419418

420419
generateCBORTerm' ::
421-
(RandomGen g, StatefulGen g (M g)) => CTreeRoot' Identity MonoRef -> Name -> g -> (Term, g)
420+
RandomGen g => CTreeRoot' Identity MonoRef -> Name -> g -> (Term, g)
422421
generateCBORTerm' cddl n stdGen =
423422
let genEnv = GenEnv {cddl}
424423
genState = GenState {randomSeed = stdGen, depth = 1}

test/Test/Codec/CBOR/Cuddle/CDDL/Parser.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,6 @@ parseExampleWith matches str parser val =
624624
shouldMatchParseWith matches val parser $
625625
T.unpack str
626626

627-
628627
parseExample :: (Show a, ToExpr a, Eq a) => T.Text -> Parser a -> a -> Spec
629628
parseExample = parseExampleWith (==)
630629

0 commit comments

Comments
 (0)