Skip to content

Commit 7680bdc

Browse files
committed
Fix more warnings
1 parent c3d6a34 commit 7680bdc

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Data/Streaming/ByteString/Builder/Class.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ instance StreamingBuilder Blaze.ByteString.Builder.Builder where
3434
--
3535
-- Since 0.1.10.0
3636
--
37-
class Monoid b => StreamingBuilder b where
37+
class Data.Monoid.Monoid b => StreamingBuilder b where
3838
newBuilderRecv :: BufferAllocStrategy -> IO (b -> IO BuilderPopper, BuilderFinish)
3939
builderFlush :: b
4040

Data/Streaming/Process.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module Data.Streaming.Process
3131
, module System.Process
3232
) where
3333

34-
import Control.Applicative ((<$>), (<*>))
34+
import Control.Applicative as A ((<$>), (<*>))
3535
import Control.Concurrent (forkIOWithUnmask)
3636
import Control.Concurrent.STM (STM, TMVar, atomically,
3737
newEmptyTMVar, putTMVar,
@@ -176,8 +176,8 @@ streamingProcess cp = liftIO $ do
176176
mclose = maybe (return ()) hClose
177177

178178
(,,,)
179-
<$> getStdin stdinH
180-
<*> getStdout stdoutH
179+
A.<$> getStdin stdinH
180+
A.<*> getStdout stdoutH
181181
<*> getStderr stderrH
182182
<*> return (StreamingProcessHandle ph ec close)
183183

bench/builder-to-bytestring-io.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import Gauge.Main
44
import qualified Data.ByteString.Char8 as S
55
import qualified Data.ByteString.Builder as BB
6-
import Data.Monoid (mconcat, Monoid)
6+
import Data.Monoid
77
import qualified Data.Streaming.ByteString.Builder as BB
88

99
main :: IO ()
@@ -25,5 +25,5 @@ main = defaultMain [ bgroup "Data.Streaming.ByteString.Builder.toByteStringIO"
2525
b100_10000 = bld BB.byteString 100 10000
2626
b10000_100 = bld BB.byteString 10000 100
2727
b10000_10000 = bld BB.byteString 10000 10000
28-
bld :: Monoid a => (S.ByteString -> a) -> Int -> Int -> a
28+
bld :: Data.Monoid.Monoid a => (S.ByteString -> a) -> Int -> Int -> a
2929
bld f len reps = mconcat (replicate reps (f (S.replicate len 'x')))

0 commit comments

Comments
 (0)