Install libghc-persistent-postgresql-dev by entering the following commands in the terminal:
sudo apt update sudo apt install libghc-persistent-postgresql-dev
Description:
backend for the persistent library using PostgreSQL
Based on the postgresql-simple package . Author: Felipe Lessa, Michael Snoyman
Homepage: http://www.yesodweb.com/book/persistent
Version: 2.6.2.1-1
Section: universe/haskell