Revert rename of dph-common for now
[packages/dph.git] / dph-common / Data / Array / Parallel / VectDepend.hs
1 {-# OPTIONS_GHC -fvectorise #-}
2 {-# OPTIONS_HADDOCK hide #-}
3
4 -- Note [Vectoriser dependencies]
5 -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6 -- Some of the modules in 'dph-common' (and hence, 'dph-seq' and 'dph-par') are being vectorised,
7 -- whereas some other modules in 'dph-common' define names hardwired into the vectoriser — i.e.,
8 -- the vectoriser panics if those latter modules have not been compiled yet. To avoid build races
9 -- we need to ensure that all vectoriser dependencies are compiler before any of the vectorised
10 -- modules is being compiled.
11 --
12 -- The present module imports all vectoriser dependencies and we ensure that those are available
13 -- in vectorised modules by importing the present module into those vectorised modules. In other
14 -- words, we turn the indirect module dependencies through the vectoriser into explicit module
15 -- dependencies, which the dependency tracker of the build system will correctly handle.
16
17 -- #hide
18 module Data.Array.Parallel.VectDepend () where
19
20 import Data.Array.Parallel.PArray.Base ()
21 import Data.Array.Parallel.PArray.Scalar ()
22 import Data.Array.Parallel.PArray.ScalarInstances ()
23 import Data.Array.Parallel.PArray.PRepr ()
24 import Data.Array.Parallel.PArray.PReprInstances ()
25 import Data.Array.Parallel.PArray.PData ()
26 import Data.Array.Parallel.PArray.PDataInstances ()
27 import Data.Array.Parallel.PArray.Types ()
28 import Data.Array.Parallel.Lifted.Closure ()
29 import Data.Array.Parallel.Lifted.Unboxed ()
30 import Data.Array.Parallel.Lifted.Scalar ()
31 import Data.Array.Parallel.Prelude.Tuple ()