Skip to content

Commit 22442e2

Browse files
committed
feature: upgrade to lts-22.43
- fixed a test for checking the priority of specializations - fixed how some values are displayed due to the upgrade - bumped some dependencies because of the upgrade
1 parent 1d0a767 commit 22442e2

File tree

8 files changed

+23
-23
lines changed

8 files changed

+23
-23
lines changed

.envrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
. <(flox activate -d $XDG_STATE_HOME/flox/haskell)
1+
eval "$(flox activate -d $FLOX/haskell)"

package.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: registry
2-
version: 0.6.1.0
2+
version: 0.6.2.0
33
synopsis: data structure for assembling components
44

55
description: This library provides a "Registry" which is a data structure containing
@@ -53,8 +53,8 @@ dependencies:
5353
- mmorph >= 1.0 && < 2
5454
- multimap >= 1.0 && < 2
5555
- protolude >= 0.2 && < 0.4
56-
- resourcet >= 1.1 && < 1.3
57-
- semigroupoids >= 5.0 && < 5.4
56+
- resourcet >= 1.1 && < 2
57+
- semigroupoids >= 5.0 && < 7
5858
- semigroups >= 0.15 && < 0.30
5959
- template-haskell >= 2.13 && < 3.0
6060
- text >= 1.1 && < 3

registry.cabal

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
cabal-version: 1.12
22

3-
-- This file has been generated from package.yaml by hpack version 0.35.2.
3+
-- This file has been generated from package.yaml by hpack version 0.36.0.
44
--
55
-- see: https://github.com/sol/hpack
66
--
7-
-- hash: 58716f09f121c810611a3d1fcee02e0347cc257f2e77c051d7990b4367e346f4
7+
-- hash: 2a0efc6bb21e7c5e914a1968aadce02745a9842fc47f9146b2be506788fec102
88

99
name: registry
1010
version: 0.6.1.0
@@ -71,8 +71,8 @@ library
7171
, mtl >=2.0 && <3
7272
, multimap >=1.0 && <2
7373
, protolude >=0.2 && <0.4
74-
, resourcet >=1.1 && <1.3
75-
, semigroupoids >=5.0 && <5.4
74+
, resourcet >=1.1 && <2
75+
, semigroupoids >=5.0 && <7
7676
, semigroups >=0.15 && <0.30
7777
, template-haskell >=2.13 && <3.0
7878
, text >=1.1 && <3
@@ -148,8 +148,8 @@ test-suite spec
148148
, protolude >=0.2 && <0.4
149149
, random <2.0
150150
, registry
151-
, resourcet >=1.1 && <1.3
152-
, semigroupoids >=5.0 && <5.4
151+
, resourcet >=1.1 && <2
152+
, semigroupoids >=5.0 && <7
153153
, semigroups <0.30
154154
, tasty <1.5
155155
, tasty-discover <6

src/Data/Registry/Internal/Reflection.hs

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{-# LANGUAGE ScopedTypeVariables #-}
2-
{-# LANGUAGE TypeInType #-}
2+
{-# LANGUAGE PolyKinds #-}
3+
{-# LANGUAGE DataKinds #-}
34

45
-- |
56
-- Utility functions to display or manipulate types
@@ -94,10 +95,10 @@ mustShowModuleName name =
9495

9596
-- | Tweak some standard module names for better display
9697
tweakNested :: Text -> Text
97-
tweakNested "[] Char" = "String"
98+
tweakNested "List Char" = "String"
9899
tweakNested n =
99-
if "[] " `isPrefixOf` n
100-
then "[" <> T.drop 3 n <> "]" -- special processing for lists
100+
if "List " `isPrefixOf` n
101+
then "[" <> T.drop 5 n <> "]" -- special processing for lists
101102
else n
102103

103104
-- | This is an attempt to better render "nested" types like IO (Maybe Text)

src/Data/Registry/Internal/Types.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ data SpecializationRange = SpecializationRange
448448
-- See TypesSpec for some concrete examples.
449449
instance Ord SpecializationRange where
450450
SpecializationRange s1 e1 <= SpecializationRange s2 e2
451-
| e1 /= s1 && e2 /= s2 = e1 <= e2 || (e1 == e2 && s1 <= s2)
451+
| e1 /= s1 && e2 /= s2 = e1 < e2 || (e1 == e2 && s1 <= s2)
452452
| e1 == s1 && e2 /= s2 = e1 < e2
453453
| otherwise = e1 <= e2
454454

stack.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: lts-21.22
1+
resolver: lts-22.43
22

33
packages:
44
- '.'

stack.yaml.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
packages: []
77
snapshots:
88
- completed:
9-
sha256: afd5ba64ab602cabc2d3942d3d7e7dd6311bc626dcb415b901eaf576cb62f0ea
10-
size: 640060
11-
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/21/22.yaml
12-
original: lts-21.22
9+
sha256: 08bd13ce621b41a8f5e51456b38d5b46d7783ce114a50ab604d6bbab0d002146
10+
size: 720271
11+
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/22/43.yaml
12+
original: lts-22.43

test/Test/Data/Registry/Internal/TypesSpec.hs

+2-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Protolude as P
99

1010
import Test.Tasty.Extensions
1111

12-
test_specialized_context_order = prop "there are preferrable specializations than other in a given context" $ do
12+
test_specialized_context_order = prop "there are preferable specializations than others in a given context" $ do
1313
let c1 = Context (fmap (\t -> (t, Nothing)) $ [f, e, d, c, b, a])
1414
let s1 = specializationRange c1 (Specialization (a :| [c]) (UntypedValue $ createValue A))
1515
let s2 = specializationRange c1 (Specialization (a :| [e]) (UntypedValue $ createValue A))
@@ -22,8 +22,7 @@ test_specialized_context_order = prop "there are preferrable specializations tha
2222
(s3 < s1) === True
2323
(s4 < s1) === True
2424
(s3 < s2) === True
25-
(s4 < s2) === True
26-
(s4 < s3) === True
25+
(s3 < s4) === True
2726
(s1 < s5) === True
2827
(s6 < s5) === True
2928

0 commit comments

Comments
 (0)