$ stack ghci StateVar-1.1.0.4: configure base-orphans-0.6: configure cabal-doctest-1.0.4: configure mtl-2.2.1: configure Error: /home/avi/.stack/setup-exe-cache/x86_64-linux-nix/Cabal-simple_mPHDZzAJ_2.0.1.0_ghc-8.2.2: startProcess: runInteractiveProcess: exec: does not exist (No such file or directory) /home/avi/.stack/setup-exe-cache/x86_64-linux-nix/Cabal-simple_mPHDZzAJ_2.0.1.0_ghc-8.2.2: startProcess: runInteractiveProcess: exec: does not exist (No such file or directory) /home/avi/.stack/setup-exe-cache/x86_64-linux-nix/Cabal-simple_mPHDZzAJ_2.0.1.0_ghc-8.2.2: startProcess: runInteractiveProcess: exec: does not exist (No such file or directory) /home/avi/.stack/setup-exe-cache/x86_64-linux-nix/Cabal-simple_mPHDZzAJ_2.0.1.0_ghc-8.2.2: startProcess: runInteractiveProcess: exec: does not exist (No such file or directory) Warning: Build failed, but trying to launch GHCi anyway The following GHC options are incompatible with GHCi and have not been passed to it: -threaded Configuring GHCi with the following packages: math Warning: Didn't find expected autogen file: /home/avi/hs/math/.stack-work/dist/x86_64-linux-nix/Cabal-2.0.1.0/build/math/autogen/cabal_macros.h Using main module: 1. Package `math' component exe:math with main-is file: /home/avi/hs/math/src/Main.hs GHCi, version 8.2.2: http://www.haskell.org/ghc/ :? for help : cannot satisfy -package recursion-schemes-5.0.2 (use -v for more information)