[Haskell-cafe] Compiling dph package with ghc-7.4.0.20111219

mukesh tiwari mukeshtiwari.iiitm at gmail.com
Sat Jan 21 18:50:12 CET 2012


Hi Brandon
Thank you for reply. Could you please tell me how to install dph
because cabal install is not working with ghc-7.4.0.20111219 and I
have issue with ghc-7.2.1 and dph

Macintosh-0026bb610428:src mukesh$ ghci -Odph -fdph-par
on the commandline:
    Warning: -O conflicts with --interactive; -O ignored.
GHCi, version 7.2.1: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package array-0.3.0.3 ... linking ... done.
Loading package old-locale-1.0.0.3 ... linking ... done.
Loading package time-1.2.0.5 ... linking ... done.
Loading package random-1.0.0.3 ... linking ... done.
Loading package primitive-0.3.1 ... linking ... done.
Loading package vector-0.7.1 ... linking ... done.
Loading package dph-base-0.5.1.1 ... linking ... done.
Loading package dph-prim-interface-0.5.1.1 ... linking ... done.
Loading package dph-prim-seq-0.5.1.1 ... linking ... done.
Loading package old-time-1.0.0.7 ... linking ... done.
Loading package dph-prim-par-0.5.1.1 ... linking ... done.
Loading package containers-0.4.1.0 ... linking ... done.
Loading package filepath-1.2.0.1 ... linking ... done.
Loading package unix-2.5.0.0 ... linking ... done.
Loading package directory-1.1.0.1 ... linking ... done.
Loading package pretty-1.1.0.0 ... linking ... done.
Loading package process-1.1.0.0 ... linking ... done.
Loading package Cabal-1.12.0 ... linking ... done.
Loading package bytestring-0.9.2.0 ... linking ... done.
Loading package binary-0.5.0.2 ... linking ... done.
Loading package bin-package-db-0.0.0.0 ... linking ... done.
Loading package hoopl-3.8.7.1 ... linking ... done.
Loading package hpc-0.5.1.0 ... linking ... done.
Loading package template-haskell ... linking ... done.
Loading package ghc-7.2.1 ... linking ... done.
Loading package dph-par ... linking ... done.
Loading package ffi-1.0 ... linking ... done.
Prelude> :set prompt "ghci>"
ghci>import Data.Array.Parallel
ghci>import Data.Array.Parallel.PArray
ghci>let u = Data.Array.Parallel.PArray.fromList [ 1 .. 10 ]
ghci>:t u
u :: PArray Double
ghci>u
fromList<PArray> [1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0,9.0,10.0]
ghci>let v = Data.Array.Parallel.fromPArrayP u
ghci>:t v
v :: [:Double:]
ghci>lengthP v
0
Also what is the expected date for release of ghc-7.4.1 and dph
package ?

Regards
Mukesh Tiwari

On Jan 21, 10:27 pm, Brandon Allbery <allber... at gmail.com> wrote:
> On Sat, Jan 21, 2012 at 06:47, mukesh tiwari
> <mukeshtiwari.ii... at gmail.com>wrote:
>
> > I have installed ghc-7.4.0.20111219  and this announcement<http://www.haskell.org/pipermail/glasgow-haskell-users/2011-December/...>says that "The
> > release candidate accidentally includes the random, primitive, vector and
> > dph libraries. The final release will not include them". I tried to
> > compile  a program
>
> It says they accidentally included extra libraries; not that they
> accidentally built the DPH extensions to the compiler.
>
> --
> brandon s allbery                                      allber... at gmail.com
> wandering unix systems administrator (available)     (412) 475-9364 vm/sms
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-C... at haskell.orghttp://www.haskell.org/mailman/listinfo/haskell-cafe



More information about the Haskell-Cafe mailing list