haskell / haskell/haskell-mode

.hsc/CPP Can't find headers.

Open
#1,892 0 comments 0 reactions 0 assignees View on GitHub
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:

Image

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.