What is the Haskell syntax to import modules in subdirectories?
You don’t actually do it from the Haskell source code; instead you tell the compiler where to look. The usual method is in the .cabal file. See the cabal user guide for details. You want the “hs-source-dirs” parameter. Alternatively you can pass the path directly to the compiler. However, Cabal is the better method. Each … Read more