<div dir="ltr">CUDA is substituted in <br>> import qualified Data.Array.Acceletare.*CUDA* as *CUDA*<br>with nothing.<br><br>-Sylvain<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-04-28 21:17 GMT+02:00 Rob Stewart <span dir="ltr"><<a href="mailto:robstewart57@gmail.com" target="_blank">robstewart57@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I'm missing something obvious. I'd like to compile the following code.<br>
<br>
--8<---------------cut here---------------start------------->8---<br>
{-# LANGUAGE CPP #-}<br>
<br>
module CPP where<br>
<br>
#ifdef CUDA<br>
import qualified Data.Array.Accelerate.CUDA as CUDA<br>
#endif<br>
<br>
f = "lolcats"<br>
--8<---------------cut here---------------end--------------->8---<br>
<br>
Without the CUDA pragma, it's all good:<br>
<br>
$ ghc --make CPP.hs<br>
[1 of 1] Compiling CPP              ( CPP.hs, CPP.o )<br>
<br>
With the pragma thought, I get a compilation error:<br>
<br>
$ ghc --make CPP.hs -DCUDA<br>
[1 of 1] Compiling CPP              ( CPP.hs, CPP.o )<br>
CPP.hs:6:39: parse error on input `.'<br>
<br>
Where's my mistake?<br>
<br>
Thanks!<br>
<br>
--<br>
Rob<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</blockquote></div><br></div>