Skip to content

Commit f4626f7

Browse files
formatter
1 parent db27c5a commit f4626f7

File tree

3 files changed

+17
-10
lines changed

3 files changed

+17
-10
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,12 @@ jobs:
5252
key: ${{ matrix.os }}-${{ matrix.ghc-version }}-${{ github.sha }}
5353
path: ~/.cabal/store
5454
restore-keys: ${{ matrix.os }}-${{ matrix.ghc-version }}-
55-
- run: cabal install fourmolu-0.19.0.1
56-
- run: fourmolu -c .
55+
- name: install fourmolu
56+
run: |
57+
wget https://github.com/fourmolu/fourmolu/releases/download/v0.17.0.0/fourmolu-0.17.0.0-linux-x86_64
58+
chmod +x fourmolu-0.17.0.0-linux-x86_64
59+
mv fourmolu-0.17.0.0-linux-x86_64 fourmolu
60+
- run: ./fourmolu -c .
5761
- run: cabal build all
5862
- run: cabal test all
5963
- run: cabal haddock all

quickcheck-dynamic/src/Test/QuickCheck/DynamicLogic/Internal.hs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -592,9 +592,11 @@ keepTryingUntil n g p = do
592592
shrinkDLTest :: DynLogicModel s => DynLogic s -> DynLogicTest s -> [DynLogicTest s]
593593
shrinkDLTest _ (Looping _) = []
594594
shrinkDLTest d tc =
595-
[ test | as' <- shrinkScript d (getScript tc), let pruned = pruneDLTest d as'
596-
test = makeTestFromPruned d pruned,
597-
-- Don't shrink a non-executable test case to an executable one.
595+
[ test
596+
| as' <- shrinkScript d (getScript tc)
597+
, let pruned = pruneDLTest d as'
598+
test = makeTestFromPruned d pruned
599+
, -- Don't shrink a non-executable test case to an executable one.
598600
case (tc, test) of
599601
(DLScript _, _) -> True
600602
(_, DLScript _) -> False
@@ -619,10 +621,10 @@ shrinkScript = shrink' initialAnnotatedState
619621
[TestSeqStep (unsafeCoerceVar var := act') ss | Some act'@ActionWithPolarity{} <- computeShrinkAction s act]
620622
++ [ TestSeqStep step ss'
621623
| ss' <-
622-
shrink'
623-
(nextStateStep step s)
624-
(stepDLStep d s step)
625-
ss
624+
shrink'
625+
(nextStateStep step s)
626+
(stepDLStep d s step)
627+
ss
626628
]
627629
nonstructural _ _ TestSeqStop = []
628630

quickcheck-dynamic/src/Test/QuickCheck/StateModel.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,8 @@ instance Show Polarity where
286286
show PosPolarity = "+"
287287
show NegPolarity = "-"
288288

289-
data ActionWithPolarity state a = Eq (Action state a) =>
289+
data ActionWithPolarity state a
290+
= Eq (Action state a) =>
290291
ActionWithPolarity
291292
{ polarAction :: Action state a
292293
, polarity :: Polarity

0 commit comments

Comments
 (0)