bitemyapp / fp-course

Fork of the original Data61 course to be more Stack friendly

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incremental development workflow

zeronone opened this issue · 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/