Install libghc-gd-dev by entering the following commands in the terminal:
sudo apt update sudo apt install libghc-gd-dev
Description:
bindings to the GD graphics library
Haskell bindings to a subset of libgd. . This package provides a library for the Haskell programming language. See http://www.haskell.org/ for more information on Haskell.
Homepage: http://hackage.haskell.org/package/gd
Version: 3000.7.3-10build2
Section: universe/haskell