Skip to content

Commit

Permalink
web: add Peter Simons' patch fixing Data.Conduit.Network HostIPv4 err…
Browse files Browse the repository at this point in the history
…or (#171)
  • Loading branch information
simonmichael committed Apr 17, 2014
1 parent 105c1d0 commit 993cae3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hledger-web/Hledger/Web/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import Yesod.Default.Config --(fromArgs)
-- import Yesod.Default.Main (defaultMain)
import Settings -- (parseExtra)
import Application (makeApplication)
import Data.Conduit.Network (HostPreference(HostIPv4))
import Data.String
import Data.Conduit.Network
import Network.Wai.Handler.Warp (runSettings, defaultSettings, settingsPort)
import Network.Wai.Handler.Launch (runUrlPort)
--
Expand Down Expand Up @@ -63,7 +64,7 @@ web opts j = do
app <- makeApplication opts j' AppConfig{appEnv = Development
,appPort = p
,appRoot = pack u
,appHost = HostIPv4
,appHost = fromString "*4"
,appExtra = Extra "" Nothing
}
if server_ opts
Expand Down
2 changes: 2 additions & 0 deletions hledger-web/hledger-web.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ library
, http-client >= 0.2 && < 0.4
, HUnit
, network-conduit
, conduit-extra
, old-locale
, parsec
, regexpr >= 0.5.1
Expand Down Expand Up @@ -221,6 +222,7 @@ executable hledger-web
, http-client >= 0.2 && < 0.4
, HUnit
, network-conduit
, conduit-extra
, old-locale
, parsec
, regexpr >= 0.5.1
Expand Down

0 comments on commit 993cae3

Please sign in to comment.