daemons 0.1.0 → 0.1.1
raw patch · 4 files changed
+21/−6 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Makefile +4/−1
- NEWS.md +10/−0
- System/Daemon.hs +4/−2
- daemons.cabal +3/−3
Makefile view
@@ -1,4 +1,4 @@-.PHONY: all build dist install test clean doc+.PHONY: all build dist install test clean doc p all: build test @@ -23,3 +23,6 @@ doc: build cabal haddock++p: clean+ permamake.sh $(shell find */ -name '*.hs') *.cabal Makefile *.md
NEWS.md view
@@ -0,0 +1,10 @@+Changes+=======++0.1.1 (18 Aug 2012)+-------------------++ - do *not* use the `-threaded` runtime;++ - use of IPv4 to workaround unpredictable behaviours in different+ distros.
System/Daemon.hs view
@@ -23,7 +23,7 @@ import Network.Socket ( Socket, SockAddr(..), Family(..), SocketType(..) , SocketOption(..), setSocketOption , socket, sClose, connect, bindSocket, listen- , getAddrInfo, addrAddress+ , AddrInfo(..), getAddrInfo, addrAddress, defaultHints , defaultProtocol, iNADDR_ANY, maxListenQueue ) import System.Directory ( getHomeDirectory ) import System.FilePath ( (</>), (<.>) )@@ -147,7 +147,9 @@ -- | Create a socket connected to the given network address. getSocket :: HostName -> Port -> IO Socket getSocket hostname port = do- addrInfos <- getAddrInfo Nothing (Just hostname) (Just $ show port)+ addrInfos <- getAddrInfo (Just (defaultHints { addrFamily = AF_INET }))+ (Just hostname)+ (Just $ show port) CE.bracketOnError (socket AF_INET Stream defaultProtocol) sClose
daemons.cabal view
@@ -1,5 +1,5 @@ Name: daemons-Version: 0.1.0+Version: 0.1.1 Cabal-Version: >= 1.8 License: GPL-3 License-File: LICENSE@@ -7,7 +7,7 @@ Author: Alexandru Scvortov <scvalex@gmail.com> Maintainer: scvalex@gmail.com Homepage: https://github.com/scvalex/daemons-Category: Text+Category: System, Control, Network Synopsis: Daemons in Haskell made fun and easy Build-Type: Simple Description:@@ -39,7 +39,7 @@ Build-depends: base >= 4 && < 5, bytestring, cereal, data-default, directory, filepath, network, pipes, transformers, unix- Ghc-options: -Wall -threaded+ Ghc-options: -Wall Exposed-modules: Control.Pipe.C3, Control.Pipe.Serialize, Control.Pipe.Socket,