Skip to content

Instantly share code, notes, and snippets.

@soupi
Created June 14, 2019 07:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soupi/995024e0c5dd9194ffb2949a8d10cbde to your computer and use it in GitHub Desktop.
Save soupi/995024e0c5dd9194ffb2949a8d10cbde to your computer and use it in GitHub Desktop.
stack exec does not find executable after stack build --profile
name: asdf-exe
version: 0.1.0.0
build-type: Simple
cabal-version: >= 1.12
executable asdf-exe
main-is: Main.hs
hs-source-dirs: .
build-depends: base >=4.7 && <5
default-language: Haskell2010
module Main where
main :: IO ()
main = print 5
➜ asdf stack build --profile
Building all executables for `asdf-exe' once. After a successful build of all of them, only specified executables will be rebuilt.
asdf-exe> configure (exe)
Configuring asdf-exe-0.1.0.0...
asdf-exe> build (exe)
Preprocessing executable 'asdf-exe' for asdf-exe-0.1.0.0..
Building executable 'asdf-exe' for asdf-exe-0.1.0.0..
[1 of 1] Compiling Main
Linking .stack-work/dist/x86_64-linux/Cabal-2.4.0.1/build/asdf-exe/asdf-exe ...
asdf-exe> copy/register
Installing executable asdf-exe in /home/suppi/code/temp/asdf/asdf/.stack-work/install/x86_64-linux/e26bc433e742e0cfc9be7b1ea24d7ce65a49e29a7b8824d3b1d126169e92f7ea/8.6.5/bin
➜ asdf stack exec asdf-exe
Executable named asdf-exe not found on path: ["/home/suppi/code/temp/asdf/asdf/.stack-work/install/x86_64-linux/0bd777249a6b78fc1e75a29ad125c689ebfc9c535f675bfa85708b5ecd2a9471/8.6.5/bin","/home/suppi/.stack/snapshots/x86_64-linux/0bd777249a6b78fc1e75a29ad125c689ebfc9c535f675bfa85708b5ecd2a9471/8.6.5/bin","/home/suppi/.stack/compiler-tools/x86_64-linux/ghc-8.6.5/bin","/home/suppi/.stack/programs/x86_64-linux/ghc-8.6.5/bin",...]
resolver: lts-13.25
packages:
- .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment