k0001 / network-simple

Haskell library abstracting common network sockets usage patterns.
BSD 3-Clause "New" or "Revised" License
33 stars 9 forks source link

build fail #13

Closed kirillos closed 8 years ago

kirillos commented 10 years ago

Hi,

I tried to build your package on Windows 8.x with cabal install. I attached the error message I get below.

C:\Users\kirillos\Downloads>cabal install network-simple Resolving dependencies... Configuring network-simple-0.4.0.1... Building network-simple-0.4.0.1... Failed to install network-simple-0.4.0.1 Last 10 lines of the build log ( C:\Users\kirillos\AppData\Roaming\cabal\logs\ne twork-simple-0.4.0.1.log ): Building network-simple-0.4.0.1... Preprocessing library network-simple-0.4.0.1... [1 of 2] Compiling Network.Simple.Internal ( src\Network\Simple\Internal.hs, dis t\build\Network\Simple\Internal.o ) [2 of 2] Compiling Network.Simple.TCP ( src\Network\Simple\TCP.hs, dist\build\Ne twork\Simple\TCP.o )

src\Network\Simple\TCP.hs:325:32: Not in scope: NSBL.sendAll' Perhaps you meant one of these: NSB.sendAll' (imported from Network.Socket.ByteString), `NSB.sendAllTo' (imported from Network.Socket.ByteString) cabal: Error: some packages failed to install: network-simple-0.4.0.1 failed during the building phase. The exception was: ExitFailure 1

C:\Users\kirillos\Downloads>

nh2 commented 10 years ago

0.4.0.1 fails on Windows, 0.4 builds fine.

I'm pretty sure it is because of https://github.com/haskell/network/issues/135#issuecomment-58972525.

Could we have a work-around in network-simple?

k0001 commented 10 years ago

I've added a workaround for this until network makes a new release: https://github.com/k0001/network-simple/commit/36253f60a336e256422bd7a96def34274b2ad044

I'll leave this issue open to remind myself I should remove that code after a while.

k0001 commented 10 years ago

Thank you for your report, and sorry it took me so long to address this.

Please consider adding yourselves to the PEOPLE file if you want to. It is a small way for me to say “thank you”.

nh2 commented 10 years ago

I've added a workaround for this until network makes a new release: 36253f6

Thanks! For readers who pass by, it's 0.4.0.2 on Hackage.