postgresql-simple-url: Parse postgres:// url into ConnectInfo

[ database, library, mit ] [ Propose Tags ]

The Database.PostgreSQL.Simple.URL module in this package exports two helper functions parseDatabaseUrl and urlToConnectInfo to construct ConnectInfo from URI (or string).

>>> parseDatabaseUrl "postgres:/"
Just (ConnectInfo "" 2345 "foo" "bar" "database")

[Skip to Readme]




Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS],,,
Change log
Dependencies base (>=4.6 && <4.20), network-uri (>=2.6 && <2.7), postgresql-simple (>=0.4 && <0.8), split (>=0.2 && <0.3) [details]
License MIT
Copyright Copyright © 2014-2018 Futurice OY, Oleg Grenrus
Author Oleg Grenrus
Maintainer Oleg Grenrus <>
Revised Revision 9 made by phadej at 2023-11-20T11:42:54Z
Category Database
Home page
Source repo head: git clone
Uploaded by phadej at 2018-03-20T20:04:46Z
Distributions LTSHaskell:, NixOS:, Stackage:
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 5197 total (24 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2018-03-20 [all 1 reports]

Readme for postgresql-simple-url-

[back to package description]


Build Status

Url parser for posgresql-simple. Useful in heroku.