This repository was archived by the owner on Oct 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 205
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
Emacs: flymake is not able to use hie as backend #1648
Open
@schnecki
Description
I have following cabal file, where I left out uninteresting parts:
cabal-version: 1.12
name: app
version: 0.1.0
build-type: Simple
library
exposed-modules:
Application
DataTypes
...
hs-source-dirs:
src
shared
default-extensions: NoImplicitPrelude, ViewPatterns
build-depends:
aeson >=1.4 && <1.5
...
, zip
ghc-options: -Wall -fwarn-tabs -O2
default-language: Haskell2010
executable devboardserver
main-is: main.hs
other-modules:
DevelMain
Paths_devboardserver
hs-source-dirs:
app
default-extensions: NoImplicitPrelude, ViewPatterns
ghc-options: -threaded -rtsopts -with-rtsopts=-N
build-depends:
aeson >=1.4 && <1.5
...
, zip
default-language: Haskell2010
Note the hs-soure-dirs entry of the library, it states two folders: src as usual, and shared in the project root directory. However files under shared, like shared/DataTypes.hs are not found, i.e. included when building. I could not find a way to configure multiple paths that are not sub-directories of src. Is there an intended way to do so, as it does not work automatically?