Moving this from a comment, since it apparently resolved the problem:
When GHC looks for source files, normally it expects a module Foo.Bar
to be found as Bar.hs
in a subdirectory Foo
, relative to whatever "root" directory it starts from. For example, if you start GHCi with Foo
as the current directory, you'll have problems with the module Bar
either not being found, or errors because the module name won't match what GHC expects.
Since the same rules seem to be in play in your case, to import Tmv.SharedTypes
you want SharedTypes.hs
to be in a Tmv
subdirectory of whatever the base path is, so either creating another Tmv
subdirectory or specifying src
alone for --include
should work.