
Am 07.09.2015 um 00:01 schrieb Ivan Lazar Miljenovic
: On 7 September 2015 at 06:58, Stuart Popejoy
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".