Path seems not to work on a Haskell program

Hi everyone! I’m trying to execute a program, which is on my path, on a Haskell program using the callCommand, from process library. However, when I execute the command it is not able to find the program. Any clues on what is happening?

I don’t have a good idea what could be going on here, but a few things I would check:

  • Can you print out your PATH env var from your Haskell program just to debug that it looks correct (ideally immediately before you try calling the program)?
  • Make sure your Haskell program isn’t actually a wrapProgram shell script that alters the PATH.
  • Make sure the Haskell function you are calling is one of the functions that knows how to use PATH to find the executable you’re trying to use.