atom-haskell-archive / haskell-ghc-mod

haskell-ghc-mod atom package
https://atom.io/packages/haskell-ghc-mod
MIT License
69 stars 20 forks source link

Custom preprocessors fail #66

Closed agrafix closed 8 years ago

agrafix commented 8 years ago

I am working on in a stack project using haskell-ghc-mod. It works great in all files that do not use a custom preprocessor like so:

{-# OPTIONS_GHC -F -pgmF htfpp #-}
module Foo where

-- ...

This results in:

could not execute: htfpp

htfpp is in the path and I can not see any other reason why this does not work?

lierdakil commented 8 years ago

Sorry about taking so long to answer, I kind of missed this issue.

Only thing I can think of is that your PATH isn't picked up by Atom. Try adding full path to directory containing htfpp executable to 'Additional Path Directories' in haskell-ghc-mod settings.

lierdakil commented 8 years ago

Closing due to inactivity.