hspec-example icon indicating copy to clipboard operation
hspec-example copied to clipboard

What's the significance of the .ghci file?

Open DestyNova opened this issue 4 years ago • 0 comments

While trying to replicate this setup in an existing Stack project, I noticed stack exec sensei test/Spec.hs fails to find the test modules. Then I noticed that I didn't have a .ghci file, and copied the one in this repo, which fixed the problem.

Could you add a note in the README perhaps explaining the function of this file? I'm guessing the following line is important and tells ghci to look in both the src and test directories for modules:

:set -isrc -itest

DestyNova avatar Jun 20 '21 01:06 DestyNova