To uninstall libghc-cgi-dev just follow these instructions.
/debian/jessie/main///install/index.html Haskell CGI library for GHC Debian 8.0 haskell 3001.1.8.5-1+b1
sudo apt-get remove libghc-cgi-dev
Which will remove just the libghc-cgi-dev package itself.
sudo apt-get remove --auto-remove libghc-cgi-dev
This will remove the libghc-cgi-dev package and any other dependant packages which are no longer needed.
If you also want to delete your local/config files for libghc-cgi-dev then this will work.
sudo apt-get purge libghc-cgi-dev
Or similarly, like this libghc-cgi-dev
sudo apt-get purge --auto-remove libghc-cgi-dev
|Maintainer||Debian Haskell Group |
|Description||Haskell CGI library for GHC|