File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,6 @@ test-suite test
5353 ghc-options : -threaded -rtsopts -with-rtsopts=-N -Wall -fwarn-tabs
5454 build-depends :
5555 , ascii-char
56- , ascii-superset
5756 , base
5857 , bytestring
5958 , hspec >= 2.1
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ SPDX-License-Identifier: BSD3
1111module Redis.GlobSpec (spec , genWithOkPatterns ) where
1212
1313import qualified ASCII.Char as A
14- import qualified ASCII.Superset as A
1514import qualified Data.ByteString.Lazy as BL
1615import Data.Word (Word8 )
1716import Redis.Glob
@@ -164,7 +163,7 @@ genPrintable = chooseEnum (32, 127)
164163
165164
166165genInnerChar :: Gen Word8
167- genInnerChar = genPrintable `suchThat` (/= A. fromChar A. RightSquareBracket )
166+ genInnerChar = genPrintable `suchThat` (/= fromChar' A. RightSquareBracket )
168167
169168
170169genSimpleChar :: Gen Word8
@@ -183,4 +182,8 @@ notSimpleChars =
183182
184183
185184avoidElem :: [A. Char ] -> Gen Word8 -> Gen Word8
186- avoidElem xs = (`suchThat` (\ x -> x `notElem` map A. fromChar xs))
185+ avoidElem xs = (`suchThat` (\ x -> x `notElem` map fromChar' xs))
186+
187+
188+ fromChar' :: A. Char -> Word8
189+ fromChar' = fromIntegral . A. toInt
You can’t perform that action at this time.
0 commit comments