kazu-yamamoto / simple-sendfile

Cross platform library for the sendfile system call
BSD 3-Clause "New" or "Revised" License
15 stars 11 forks source link

Windows 7 Build error #5

Closed santios closed 12 years ago

santios commented 12 years ago

Configuring simple-sendfile-0.2.2... Preprocessing library simple-sendfile-0.2.2... Building simple-sendfile-0.2.2... [1 of 3] Compiling Network.Sendfile.Types ( Network\Sendfile\Types.hs, dist\build\Network\Sendfile\Types.o ) [2 of 3] Compiling Network.Sendfile.Fallback ( Network\Sendfile\Fallback.hs, dist\build\Network\Sendfile\Fallback.o )

Network\Sendfile\Fallback.hs:26:33: Couldn't match type m' withData.Conduit.Internal.Finalize m' m' is a rigid type variable bound by the type signature for sinkSocket :: MonadResource m => Socket -> IO () -> Sink ByteString m () at Network\Sendfile\Fallback.hs:24:1 In the second argument ofPipeM', namely close'' In the expression: PipeM sendAndHook close' In an equation forpush': push bs = PipeM sendAndHook close' where sendAndHook = do { liftIO (SB.sendAll s bs); .... } cabal: Error: some packages failed to install: simple-sendfile-0.2.2 failed during the building phase. The exception was: ExitFailure 1

luite commented 12 years ago

This is caused by the new Finalization code in conduit 0.4.1, the API was changed slightly to fix a memory leak.

kazu-yamamoto commented 12 years ago

Thank you for letting me know this. I have released v0.2.3.