Given a cabal-project which has a data-file and a function that wants to read it.
This function f
from project p
does roughly the following:
module F where
import Paths_p
f = getDataFileName "datafile.dat" >>= readFile
In this file emacs haskell-mode marks the import as an error. Every other error or warning that might be in that file will never be marked.
Is there a way to make haskell-mode aware of the module Paths_p
?