I am trying to implement a multi-spec file testing suite for a project in Haskell, using hspec-discover:
-- this goes in Spec.hs
{-# OPTIONS_GHC -F -pgmF hspec-discover #-}
This should allow me to use multiple files of the form *spec.hs, but Microsoft Visual Studio gives me the following compiler error:
hspec-discover: runInteractiveProcess: posix_spawnp: illegal operation (Inappropriate ioctl for device)
Stack, however, compiles it just fine, so I am unsure if this is just a mismatch between the compilers or if this is an an issue with input/output control the Visual Studio compiler is catching and Stack is not. Is there a fix I need to make, or is this a fluke?