File tree Expand file tree Collapse file tree 3 files changed +17
-10
lines changed
quickcheck-dynamic/src/Test/QuickCheck Expand file tree Collapse file tree 3 files changed +17
-10
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -592,9 +592,11 @@ keepTryingUntil n g p = do
592592shrinkDLTest :: DynLogicModel s => DynLogic s -> DynLogicTest s -> [DynLogicTest s ]
593593shrinkDLTest _ (Looping _) = []
594594shrinkDLTest 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments