[Haskell-cafe] emacs haskell-mode with cabal exec, test suite sections

Sebastian Wiesner swiesner at lunaryorn.com
Tue Sep 8 17:27:16 UTC 2015

> Am 07.09.2015 um 00:01 schrieb Ivan Lazar Miljenovic <ivan.miljenovic at gmail.com>:
> On 7 September 2015 at 06:58, Stuart Popejoy <spopejoy at panix.com> wrote:
>> I'm having trouble coding test-suite and executable sections with
>> the emacs REPL and flycheck.
>> 1. cabal-repl can compile against the library code, but fails to see any
>> modules within the non-library section.
> haskell-session-change-target
>> 2. flycheck has the opposite problem: it fails on library module imports but
>> recognizes imports local to the section.
> Yeah, it claims to have sandbox support but for some reason I've never
> managed to get it to stop complaining about not being able to find
> modules installed in the sandbox.

Flycheck does not support Cabal sandboxes out of the box.  You need to install and configure the addon package "flycheck-haskell".

More information about the Haskell-Cafe mailing list