Open paluh opened 5 years ago
Currently withConnection can leak Connection value outside of the bracket. Consider adding two versions :
withConnection
Connection
withConnection :: forall a . Pool -> (forall h. Either PGError (Connection h) -> Aff a) -> Aff a
and
unsafeWithConnection :: forall a h . Pool -> (Either PGError (Connection h) -> Aff a) -> Aff a
The second one should be introduced for convenience as scoped version can cause some troubles regarding type inference and composition.
Currently
withConnection
can leakConnection
value outside of the bracket. Consider adding two versions :and
The second one should be introduced for convenience as scoped version can cause some troubles regarding type inference and composition.