haskell / haskell/haskell-mode

C pre-processor errors not reported

Open
#278 4 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

The following error is reported in the _haskell-process-log_ buffer, but not in the haskell-interactive-mode buffer or the echo area:

error: missing binary operator before token \"(\"
phase `C pre-processor' failed (exitcode = 1)

If I had not checked the log buffer I would have no idea that there was a problem, or what the problem was.

The error was generated by the following code:

``` haskell
{-# LANGUAGE CPP #-}
#if MIN_VERSION_containers(0,5,0)
import qualified Data.IntMap.Strict as Map
#else
import qualified Data.IntMap as Map
#endif
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.