Skip to content

Commit 2418087

Browse files
andreiburdusagithub-actions
andauthored
LTS Haskell 18.18 (#2924)
* Update resolver to lts-18.18 * Update haskell.nix * Update ghc_version in test.yml * Update fourmolu in sources.json * Update fourmolu and hlint files * Materialize Nix expressions * Format with fourmolu * Empty commit * Update index-state in default.nix * Update haskell-hls-nix in sources.json * Revert "Update fourmolu in sources.json" This reverts commit 5557f7f. * Materialize Nix expressions * Empty commit * Format with fourmolu * Empty commit * Give ghcVersion instead of compiler-nix-name to haskell-hls-nix * Update hlint in sources.json and rematerialize * Update hlint version in sources.json * Empty commir to restart Cabal tests Co-authored-by: github-actions <[email protected]>
1 parent b8062a8 commit 2418087

File tree

28 files changed

+606
-462
lines changed

28 files changed

+606
-462
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ jobs:
130130
name: 'Cabal'
131131
runs-on: ubuntu-latest
132132
env:
133-
ghc_version: "8.10.4"
133+
ghc_version: "8.10.7"
134134
steps:
135135
- name: Install prerequisites
136136
run: |

default.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,9 @@ let
9595
};
9696

9797
# Change the compiler when updating our own resolver.
98-
compiler-nix-name = "ghc8104";
99-
index-state = "2021-02-09T00:00:00Z";
98+
compiler-nix-name = "ghc8107";
99+
ghcVersion = "8.10.7";
100+
index-state = "2021-12-03T00:00:00Z";
100101
};
101102

102103
in default

kore/kore.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ common library
116116
build-depends: aeson >=1.4
117117
build-depends: bytestring >=0.10
118118
build-depends: clock >=0.8
119-
build-depends: co-log >=0.3
119+
build-depends: co-log >=0.4
120120
build-depends: comonad >=5.0
121121
build-depends: containers >=0.5.8
122122
build-depends: cryptonite >=0.25

kore/src/Kore/Builtin/AssociativeCommutative.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,9 +1358,9 @@ unifyEqualsElementLists
13581358
return (result, [])
13591359
where
13601360
unifyWithPermutations ::
1361-
-- | First structure elements
1361+
-- First structure elements
13621362
[ConcreteOrWithVariable normalized variable] ->
1363-
-- | Second structure elements
1363+
-- Second structure elements
13641364
[ConcreteOrWithVariable normalized variable] ->
13651365
unifier
13661366
( Conditional

kore/src/Kore/Internal/TermLike/TermLike.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -847,11 +847,11 @@ instance InternalVariable variable => Substitute (TermLike variable) where
847847
either extractFreeVariables (Set.singleton . variableName)
848848

849849
renaming ::
850-
-- | Original variable
850+
-- Original variable
851851
SomeVariable variable ->
852-
-- | Renamed variable
852+
-- Renamed variable
853853
Maybe (SomeVariable variable) ->
854-
-- | Substitution
854+
-- Substitution
855855
Map
856856
(SomeVariableName variable)
857857
(Either (TermLike variable) (SomeVariable variable)) ->

kore/src/Kore/Repl/Interpreter.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1346,7 +1346,7 @@ performStepNoBranching =
13461346
-- Loop branch
13471347
(n, SingleResult _) -> do
13481348
res <- runStepper
1349-
pure $ Left (n -1, res)
1349+
pure $ Left (n - 1, res)
13501350
-- Early exit when there is a branch or there is no next.
13511351
(n, res) -> pure $ Right (n, res)
13521352

@@ -1366,8 +1366,8 @@ recursiveForcedStep n node
13661366
updateExecutionGraph graph
13671367
case result of
13681368
NoResult -> pure ()
1369-
SingleResult sr -> (recursiveForcedStep $ n -1) sr
1370-
BranchResult xs -> traverse_ (recursiveForcedStep (n -1)) xs
1369+
SingleResult sr -> (recursiveForcedStep $ n - 1) sr
1370+
BranchResult xs -> traverse_ (recursiveForcedStep (n - 1)) xs
13711371

13721372
-- | Display a rule as a String.
13731373
showRewriteRule ::

kore/src/Kore/Rewrite/Strategy.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ executionHistoryStep transit prim exe@ExecutionGraph{graph} node
339339
nodeIsNotLeaf = Graph.outdeg graph node > 0
340340

341341
mkChildNode ::
342-
-- | Child node identifier and configuration
342+
-- Child node identifier and configuration
343343
(config, Seq rule) ->
344344
ChildNode config rule
345345
mkChildNode (config, rules) =

kore/test/Test/Kore/Builtin/InternalBytes.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,9 @@ test_substr =
265265
testSubstrBytes ::
266266
HasCallStack =>
267267
TestName ->
268-
-- | arguments of @substrBytes@ symbol
268+
-- arguments of @substrBytes@ symbol
269269
[TermLike RewritingVariableName] ->
270-
-- | expected result
270+
-- expected result
271271
OrPattern RewritingVariableName ->
272272
TestTree
273273
testSubstrBytes testName = testBytes testName substrBytesSymbol
@@ -589,9 +589,9 @@ int2bytesData =
589589
, (128, True, "\x80")
590590
, (-128, True, "\x80")
591591
, (2, True, "\x02")
592-
, (- 2, True, "\xfe")
592+
, (-2, True, "\xfe")
593593
, (16, True, "\x10")
594-
, (- 16, True, "\xf0")
594+
, (-16, True, "\xf0")
595595
, (128, True, "\x00\x80")
596596
, (-128, True, "\xff\x80")
597597
, (128, False, "\x80\x00")

kore/test/Test/Kore/Builtin/Map.hs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,9 +1309,9 @@ test_renormalize =
13091309
becomes ::
13101310
HasCallStack =>
13111311
TestName ->
1312-
-- | original, (possibly) de-normalized map
1312+
-- original, (possibly) de-normalized map
13131313
NormalizedMap Key (TermLike RewritingVariableName) ->
1314-
-- | expected normalized map
1314+
-- expected normalized map
13151315
NormalizedMap Key (TermLike RewritingVariableName) ->
13161316
TestTree
13171317
becomes name origin expect =
@@ -1333,11 +1333,11 @@ test_renormalize =
13331333
testCase name $ assertEqual "" Nothing (Ac.renormalize origin)
13341334

13351335
mkMap' ::
1336-
-- | abstract elements
1336+
-- abstract elements
13371337
[(TermLike RewritingVariableName, TermLike RewritingVariableName)] ->
1338-
-- | concrete elements
1338+
-- concrete elements
13391339
[(Key, TermLike RewritingVariableName)] ->
1340-
-- | opaque terms
1340+
-- opaque terms
13411341
[NormalizedMap Key (TermLike RewritingVariableName)] ->
13421342
NormalizedMap Key (TermLike RewritingVariableName)
13431343
mkMap' abstract concrete opaque =

kore/test/Test/Kore/Builtin/Set.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,9 +508,9 @@ test_difference_symbolic =
508508

509509
evalDifference ::
510510
HasCallStack =>
511-
-- | expected result
511+
-- expected result
512512
Maybe (Pattern RewritingVariableName) ->
513-
-- | arguments of 'differenceSet'
513+
-- arguments of 'differenceSet'
514514
[TermLike RewritingVariableName] ->
515515
Assertion
516516
evalDifference expect args = do

0 commit comments

Comments
 (0)