Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Haskell Stack `exec` executable not found despite path being searched

Creating a fresh haskell-stack project fails to find the project-exec executable, despite searching the appropriate path. I'm not sure why. In particular,

stack build creates the project-exec inside $PROJECT_DIR/.stack-work/install/x86_64-linux-ncurses6/.../bin/project-exe

However, stack exec project-exec fails with:

Executable named rse8-exec not found on path: ["$PROJECT_DIR/.stack-work/install/x86_64-linux-ncurses6/lts-7.14/8.0.1/bin", ]

(to clarify, $PROJECT_DIR references and ... are (hopefully) obvious placeholders for paths. the actual error contains the full path)

like image 346
clo_jur Avatar asked Dec 29 '16 19:12

clo_jur


1 Answers

Apologies for the lack of attention showed here. This question should probably just be deleted.

Stack creates a file named <project>-exe not <project>-exec.

like image 197
clo_jur Avatar answered Oct 08 '22 19:10

clo_jur