Problem to compile an example of Data Parallel Haskell

Hi, I have tried to compile an example of DPH (Data prallel Haskell) but I am not getting any success. The target is the concmop.hs (http://darcs.haskell.org/ghc-6.10/packages/dph/examples/concomp/) for calculate connected components in a graph. I am using GHC 6.10.4 compiled with extras libs (which also includes DPH 0.3.0). I've got this error. Seems that GHC can't find these functions/types. --------------------------------------------------------------------------------------------------------------------- edgar@edgar-ubuntu:~/Desktop/dph$ ghc --make -fdph-par -XTypeOperators ./concomp.hs [1 of 4] Compiling Graph ( Graph.hs, Graph.o ) Graph.hs:11:45: Not in scope: type constructor or class `:*:' Graph.hs:23:6: Not in scope: `hPutU' Graph.hs:33:15: Not in scope: `hGetU' --------------------------------------------------------------------------------------------------------------------- Using the example from Ben Jao Ming (http://overtag.dk/wordpress/2009/04/data-parallel-haskell/), I can successfully compile and run. Could anyone help me? -- Kind regards, ___________________________________________ *Ir. Edgar Gomes * Metallurgical Engineer /Ghent University/ Department Metallurgy and Materials Science B-9052 Zwijnaarde-Gent Belgium

On Mon, Oct 12, 2009 at 02:26:28PM +0200, Edgar GOMES DE ARAUJO wrote:
Hi,
I have tried to compile an example of DPH (Data prallel Haskell) but I am not getting any success. The target is the concmop.hs (http://darcs.haskell.org/ghc-6.10/packages/dph/examples/concomp/) for calculate connected components in a graph. I am using GHC 6.10.4 compiled with extras libs (which also includes DPH 0.3.0). I've got this error. Seems that GHC can't find these functions/types.
--------------------------------------------------------------------------------------------------------------------- edgar@edgar-ubuntu:~/Desktop/dph$ ghc --make -fdph-par -XTypeOperators ./concomp.hs [1 of 4] Compiling Graph ( Graph.hs, Graph.o )
Graph.hs:11:45: Not in scope: type constructor or class `:*:'
Graph.hs:23:6: Not in scope: `hPutU'
Graph.hs:33:15: Not in scope: `hGetU' ---------------------------------------------------------------------------------------------------------------------
Perhaps that file is just missing an import? IIRC these things are from Data.Array.Vector, from the uvector package. -Brent
participants (2)
-
Brent Yorgey
-
Edgar GOMES DE ARAUJO