Install libghc-hdbc-postgresql-dev by entering the following commands in the terminal:
sudo apt update sudo apt install libghc-hdbc-postgresql-dev
Description:
PostgreSQL HDBC (Haskell Database Connectivity) Driver for GHC
HDBC provides an abstraction layer between Haskell programs and SQL relational databases. This lets you write database code once, in Haskell, and have it work with any number of backend SQL databases. . This package provides the PostgreSQL database driver for HDBC under GHC.
Homepage: http://hackage.haskell.org/package/HDBC-postgresql
Version: 2.3.2.4-3build4
Section: universe/haskell