Is there a way to recursively load all of a project's modules in GHCi?

443 views Asked by At

I have a project that has several subdirectories of code, structured something like...

src/Main.hs
src/Module1/... # many *.hs source files, here
src/Module1/ModuleA/... # more *.hs files
src/Module2/...

when I run ghci, I end up doing this:

ghci src/Module1/ModuleA/*.hs src/Module1/*.hs src/Module2/*.hs ... <and so on> ... src/*.hs

The above command works, but seems really verbose when all I really want to say is "recursively search all subdirectories and load all Haskell modules in them"

0

There are 0 answers