File tree Expand file tree Collapse file tree 4 files changed +18
-10
lines changed Expand file tree Collapse file tree 4 files changed +18
-10
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,10 @@ ghc-options:
44
44
- -Wpartial-fields
45
45
- -Wredundant-constraints
46
46
- -Wunused-packages
47
+ when :
48
+ - condition : impl(ghc < 9.4)
49
+ ghc-options :
50
+ - -Wno-unticked-promoted-constructors
47
51
48
52
library :
49
53
source-dirs : src
Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ sToLower :: SSymbol s -> SSymbol (ToLower s)
45
45
sToLower ss = sToLowerUncons (sUnconsSymbol ss)
46
46
47
47
type family ToLowerUncons (mcs :: Maybe (Char , Symbol )) :: Symbol where
48
- ToLowerUncons ' Nothing = " "
49
- ToLowerUncons (' Just '(c , s )) = ConsSymbol (ToLowerChar c ) (ToLower s )
48
+ ToLowerUncons Nothing = " "
49
+ ToLowerUncons (Just '(c , s )) = ConsSymbol (ToLowerChar c ) (ToLower s )
50
50
51
51
sToLowerUncons :: SMaybe mcs -> SSymbol (ToLowerUncons mcs )
52
52
sToLowerUncons = \ case
@@ -131,8 +131,8 @@ sToUpper :: SSymbol s -> SSymbol (ToUpper s)
131
131
sToUpper ss = sToUpperUncons (sUnconsSymbol ss)
132
132
133
133
type family ToUpperUncons (mcs :: Maybe (Char , Symbol )) :: Symbol where
134
- ToUpperUncons ' Nothing = " "
135
- ToUpperUncons (' Just '(c , s )) = ConsSymbol (ToUpperChar c ) (ToUpper s )
134
+ ToUpperUncons Nothing = " "
135
+ ToUpperUncons (Just '(c , s )) = ConsSymbol (ToUpperChar c ) (ToUpper s )
136
136
137
137
sToUpperUncons :: SMaybe mcs -> SSymbol (ToUpperUncons mcs )
138
138
sToUpperUncons = \ case
Original file line number Diff line number Diff line change @@ -25,14 +25,14 @@ type family IsPrefixOfInsensitive (s :: Symbol) (t :: Symbol) :: Bool where
25
25
IsPrefixOfInsensitive s t = IsPrefixOf (ToLower s ) (ToLower t )
26
26
27
27
type family IsPrefixOfList (s :: [Char ]) (t :: [Char ]) :: Bool where
28
- IsPrefixOfList '[] '[] = ' True
29
- IsPrefixOfList '[] (y ' : ys ) = ' True
30
- IsPrefixOfList (x ' : xs ) (y ' : ys ) = (x == y ) && IsPrefixOfList xs ys
31
- IsPrefixOfList (x ' : xs ) '[] = ' False
28
+ IsPrefixOfList '[] '[] = True
29
+ IsPrefixOfList '[] (y : ys ) = True
30
+ IsPrefixOfList (x : xs ) (y : ys ) = (x == y ) && IsPrefixOfList xs ys
31
+ IsPrefixOfList (x : xs ) '[] = False
32
32
33
33
type family ToList (s :: Symbol ) :: [Char ] where
34
34
ToList s = ToListUncons (UnconsSymbol s )
35
35
36
36
type family ToListUncons (x :: (Maybe (Char , Symbol ))) :: [Char ] where
37
- ToListUncons ' Nothing = '[]
38
- ToListUncons (' Just '(c , s )) = c ' : ToList s
37
+ ToListUncons Nothing = '[]
38
+ ToListUncons (Just '(c , s )) = c : ToList s
Original file line number Diff line number Diff line change @@ -75,6 +75,8 @@ library
75
75
, text >= 1.2 && < 1.3 || >= 2.0 && < 2.1 || >= 2.1 && < 2.2
76
76
, vary == 0.1. *
77
77
default-language : Haskell2010
78
+ if impl(ghc < 9.4 )
79
+ ghc-options : -Wno-unticked-promoted-constructors
78
80
if impl(ghc >= 9.6 )
79
81
other-modules :
80
82
VCard.Symbol.Private.Compat.New
@@ -157,6 +159,8 @@ test-suite vcard-tests
157
159
, time >= 1.11 && < 1.12 || >= 1.12 && < 1.13 || >= 1.14 && < 1.15
158
160
, vary == 0.1. *
159
161
default-language : Haskell2010
162
+ if impl(ghc < 9.4 )
163
+ ghc-options : -Wno-unticked-promoted-constructors
160
164
if impl(ghc >= 9.6 )
161
165
other-modules :
162
166
VCard.Symbol.Private.Compat.New
You can’t perform that action at this time.
0 commit comments