$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.6.3
$ cabal install --only-dependencies
Resolving dependencies...
Configuring network-multicast-0.0.8...
Building network-multicast-0.0.8...
Preprocessing library network-multicast-0.0.8...
[1 of 1] Compiling Network.Multicast ( dist/build/Network/Multicast.hs, dist/build/Network/Multicast.o )
src/Network/Multicast.hsc:76:50:
Couldn't match type `Socket' with `()'
Expected type: () -> IO ()
Actual type: Socket -> IO () v35 2013-08-31 10:26 CEST
In the second argument of `bracketOnError', namely `close'
In the expression: bracketOnError get close setup
In an equation for `multicastReceiver':
multicastReceiver host port
= bracketOnError get close setup
where
get
= do { proto <- getProtocolNumber "udp";
.... }
setup sock
= do { (addrInfo : _) <- getAddrInfo
Nothing (Just host) (Just $ show port);
.... }
src/Network/Multicast.hsc:76:56:
Couldn't match type `Socket' with `()'
Expected type: () -> IO Socket
Actual type: Socket -> IO Socket
In the third argument of `bracketOnError', namely `setup'
In the expression: bracketOnError get close setup
In an equation for `multicastReceiver':
multicastReceiver host port
= bracketOnError get close setup
where
get
= do { proto <- getProtocolNumber "udp";
.... }
setup sock
= do { (addrInfo : _) <- getAddrInfo
Nothing (Just host) (Just $ show port);
.... }
Failed to install network-multicast-0.0.8
cabal: Error: some packages failed to install:
distributed-process-simplelocalnet-0.2.0.9 depends on network-multicast-0.0.8
which failed to install.
network-multicast-0.0.8 failed during the building phase. The exception was:
ExitFailure 1