Let newPool run in Effect monad

This commit is contained in:
Tomasz Rybarczyk 2018-12-06 20:08:48 +01:00
parent b6f3e11a5d
commit 111790af84

View File

@ -91,9 +91,9 @@ newtype Query i o = Query String
derive instance newtypeQuery :: Newtype (Query i o) _
-- | Create a new connection pool.
newPool :: PoolConfiguration -> Aff Pool
newPool :: PoolConfiguration -> Effect Pool
newPool cfg =
liftEffect <<< ffiNewPool $ cfg'
ffiNewPool $ cfg'
where
cfg' =
{ user: toNullable cfg.user