get rid of (completely safe) uses of Char8
Char8 often indicates an encoding bug. It didn't here, but I can avoid it and not worry about it.
This commit is contained in:
parent
34f2c82886
commit
b197ec8917
2 changed files with 5 additions and 4 deletions
|
@ -18,7 +18,8 @@ module Utility.Hash (
|
|||
) where
|
||||
|
||||
import qualified Data.ByteString.Lazy as L
|
||||
import qualified Data.ByteString.Char8 as C8
|
||||
import qualified Data.Text as T
|
||||
import qualified Data.Text.Encoding as T
|
||||
|
||||
#ifndef WITH_CRYPTOHASH
|
||||
import Data.Digest.Pure.SHA
|
||||
|
@ -66,4 +67,4 @@ prop_hashes_stable = all (\(hasher, result) -> hasher foo == result)
|
|||
#endif
|
||||
]
|
||||
where
|
||||
foo = L.fromChunks [C8.pack "foo"]
|
||||
foo = L.fromStrict $ T.encodeUtf8 $ T.pack "foo"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue