I installed lhs2TeX from Linux Mint 17.1 repositories and get the following error when trying to convert the file.
`code' is not defined;
perhaps you forgot to include "lhs2TeX.fmt"?
Error line reported is first line of code in haskell
The calling line is:
lhs2TeX file.lhs -o file.tex