haskell / haskell/haskell-mode
.hsc/CPP Can't find headers.
- Dominant language
- Emacs Lisp
- Stars
- 1.4k
- Forks
- 354
- Avg merge
- 5d 10h
- Merged PRs (30d)
- 2
Description
I have an hsc file:
```hs
{-# LANGUAGE CPP #-}
module System.FUSE.Internal
-- TODO: explicit exports
where
#define FUSE_USE_VERSION 318
#include
```
I have my project setup fine, and running `cabal build` and `cabal repl` works. but for some reason I get these errors:
Contributor guide
Research direction
Start by reproducing the diagnostics for the shown .hsc file in Emacs, comparing them with the successful cabal build and cabal repl commands. Inspect how the mode handles CPP and the included fuse.h header. Done means the editor can resolve the header without reporting the shown errors while the existing build and REPL behavior remains intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, emacs
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100