[Haskell-cafe] Parse error when #ifdef pragma enabled

Rob Stewart robstewart57 at gmail.com
Mon Apr 28 20:35:54 UTC 2014


Hi Rob,

On 28 April 2014 20:32, Robert Vollmert <rvollmert-lists at gmx.net> wrote:

> You’re defining ‘CUDA’ to be replaced by the empty string, so after running through CPP, you’ll have
>
> module CPP where
> import qualified Data.Array.Accelerate. as
>
> (Haven’t actually tested this, but it’s what cpp should do, and explains the error message nicely.)
>
> Try using ‘-DWITHCUDA’ or something similar?

Works as you might expect, thanks!

--
Rob


More information about the Haskell-Cafe mailing list