Skip to content

Commit

Permalink
Added expected first argument "network type" to "newConnPool" to fix …
Browse files Browse the repository at this point in the history
…compile error.
  • Loading branch information
lukehoersten committed Dec 22, 2010
1 parent 7f00b97 commit 7561893
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Snap/Extension/MongoDB/MongoDB.hs
Expand Up @@ -25,7 +25,7 @@ import Snap.Extension.MongoDB
-- | MongoDB State
data MongoDBState = MongoDBState
{ connPool :: ConnPool Host
, appDatabase :: Database
, appDatabase :: Database
}


Expand All @@ -42,12 +42,12 @@ class HasMongoDBState s where
------------------------------------------------------------------------------
-- |
mongoDBInitializer :: Host
-> Int
-> UString
-> Initializer MongoDBState
-> Int
-> UString
-> Initializer MongoDBState
mongoDBInitializer h n db = do
mongoState <- liftIO $ do
pool <- newConnPool n h
pool <- newConnPool Internet n h
return $ MongoDBState pool (Database db)
mkInitializer mongoState

Expand Down

0 comments on commit 7561893

Please sign in to comment.