avoid ByteString.Char8 where not needed

Its truncation behavior is a red flag, so avoid using it in these places
where only raw ByteStrings are used, without looking at the data inside.
This commit is contained in:
Joey Hess 2012-06-20 13:13:40 -04:00
parent 6d641f1ac0
commit 75b6ee81f9
8 changed files with 10 additions and 10 deletions

View file

@ -12,7 +12,7 @@ module Annex.CatFile (
catFileHandle
) where
import qualified Data.ByteString.Lazy.Char8 as L
import qualified Data.ByteString.Lazy as L
import Common.Annex
import qualified Git

View file

@ -26,7 +26,7 @@ module Crypto (
prop_hmacWithCipher_sane
) where
import qualified Data.ByteString.Lazy.Char8 as L
import qualified Data.ByteString.Lazy as L
import Data.ByteString.Lazy.UTF8 (fromString)
import Data.Digest.Pure.SHA
import Control.Applicative

View file

@ -15,8 +15,8 @@ module Git.CatFile (
) where
import System.IO
import qualified Data.ByteString.Char8 as S
import qualified Data.ByteString.Lazy.Char8 as L
import qualified Data.ByteString as S
import qualified Data.ByteString.Lazy as L
import Common
import Git

View file

@ -7,7 +7,7 @@
module Remote.Bup (remote) where
import qualified Data.ByteString.Lazy.Char8 as L
import qualified Data.ByteString.Lazy as L
import qualified Data.Map as M
import System.Process

View file

@ -7,8 +7,8 @@
module Remote.Directory (remote) where
import qualified Data.ByteString.Lazy.Char8 as L
import qualified Data.ByteString.Char8 as S
import qualified Data.ByteString.Lazy as L
import qualified Data.ByteString as S
import qualified Data.Map as M
import qualified Control.Exception as E

View file

@ -7,7 +7,7 @@
module Remote.Hook (remote) where
import qualified Data.ByteString.Lazy.Char8 as L
import qualified Data.ByteString.Lazy as L
import qualified Data.Map as M
import System.Exit
import System.Environment

View file

@ -7,7 +7,7 @@
module Remote.Rsync (remote) where
import qualified Data.ByteString.Lazy.Char8 as L
import qualified Data.ByteString.Lazy as L
import qualified Data.Map as M
import Common.Annex

View file

@ -7,7 +7,7 @@
module Utility.Gpg where
import qualified Data.ByteString.Lazy.Char8 as L
import qualified Data.ByteString.Lazy as L
import System.Posix.Types
import Control.Applicative
import Control.Concurrent