fp-course icon indicating copy to clipboard operation
fp-course copied to clipboard

Incremental development workflow

Open zeronone opened this issue 6 years ago • 0 comments

In my setup: when using make test-ghci module reloading (:r) doesn't necessarily reload the source files under the /src directory. It seems like it only considers the /test directory as interpreted. So if I change a code in src/Course/Functor.hs and run :r in the test ghci session, it doesn't reload the newly modified Functor.hs file.

However, running the following command works as expected.

$ stack exec ghci -- -isrc -itest test/Spec.hs
λ: :main --match=Course.Functor/
λ: -- modify src/Course/Functor.hs
λ: :r
λ: :main --match=Course.Functor/

zeronone avatar Jul 04 '18 13:07 zeronone