Run apt-get install libghc-temporary-dev libghc-haskeline-dev.