Skip to content

With packages in subdirs, compiler warnings leave subdirectory off file names #1259

@chreekat

Description

@chreekat

I have a package in the subdirectory 'original/'. A compiler warning mentions a file in that package, Mechanism.hs. However, it's listed as "src/Mechanism.hs", not "original/src/Mechanism.hs":

b@fuzzbomb $ stack test --pedantic
Snowdrift-0.1.4: build
Preprocessing library Snowdrift-0.1.4...
[ 61 of 110] Compiling Mechanism        ( src/Mechanism.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Mechanism.o )

src/Mechanism.hs:113:1: Warning:
    Top-level binding with no type signature:
      potentialPledge :: forall (m :: * -> *).
                         (MonadResource m, MonadBaseControl IO m, MonadLogger m) =>
                         Key Fixme.User
                         -> ProjectId
                         -> Control.Monad.Trans.Reader.ReaderT
                              SqlBackend m (Maybe (Entity Pledge), [Int64], [Int64])
<snip>...

b@fuzzbomb $ find . -name 'Mechanism.hs'
./original/src/Mechanism.hs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions