My haskell application has the following directory structure:
src/
utils/Utils.hs
subsystem/Subsystem.hs
The Subsystem
module imports Utils
module. I would like to hand test this code in GHCi.
The problem is GHCi seems to be only looking for modules available in '.'
(current directory), so I copied Utils.hs
to subsystem folder and was able to hand-test Subsytem.hs
. Is there a better way to do this? For example I would like to start GHCi in the src
directory and let it search for modules in ./utils
and ./subsystem
directories. Can I specify a module path to GHCi?