Skip to content

Conversation

@jhrcek
Copy link
Contributor

@jhrcek jhrcek commented Jun 29, 2023

No description provided.

dbPool <- Pool.createPool (Sql.connectPostgreSQL connectionSettings) Sql.close 10 5 10
dbPool <-
#if MIN_VERSION_resource_pool(0,4,0)
Pool.newPool (Pool.defaultPoolConfig ((Sql.connectPostgreSQL connectionSettings)) Sql.close 1 10)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure? Wasn't newPool added in v0.3.0.0?

Copy link
Contributor Author

@jhrcek jhrcek Jun 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was, but at that point there was no defaultPoolConfig, which was introduces in 0.4.0.0 :)

So I'm doing minimum amount of changes to make it work warning-free with the versions we allow in cabal file.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I see. 👍

Copy link
Member

@nitinprakash96 nitinprakash96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jhrcek jhrcek merged commit 1920301 into master Jun 29, 2023
@jhrcek jhrcek deleted the jan/fix-deprecation-warning branch June 29, 2023 08:35
@jhrcek jhrcek restored the jan/fix-deprecation-warning branch June 29, 2023 11:51
@nitinprakash96 nitinprakash96 deleted the jan/fix-deprecation-warning branch June 30, 2023 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants