ee7eea8b279530fdef80d6cc6d5a2459f49bba5a
[packages/base.git] / GHC / PArr.hs
1 {-# LANGUAGE Trustworthy #-}
2 {-# LANGUAGE ParallelArrays, MagicHash #-}
3 {-# OPTIONS_GHC -funbox-strict-fields #-}
4 {-# OPTIONS_HADDOCK hide #-}
5
6 -----------------------------------------------------------------------------
7 -- |
8 -- Module : GHC.PArr
9 -- Copyright : (c) 2001-2011 The Data Parallel Haskell team
10 -- License : see libraries/base/LICENSE
11 --
12 -- Maintainer : cvs-ghc@haskell.org
13 -- Stability : internal
14 -- Portability : non-portable (GHC Extensions)
15 --
16
17 -- #hide
18 module GHC.PArr where
19
20 import GHC.Base
21
22 -- Representation of parallel arrays
23 --
24 -- Vanilla representation of parallel Haskell based on standard GHC arrays that is used if the
25 -- vectorised is /not/ used.
26 --
27 -- NB: This definition *must* be kept in sync with `TysWiredIn.parrTyCon'!
28 --
29 data [::] e = PArr !Int (Array# e)