diff options
author | Mikolaj Konarski <mikolaj.konarski@funktory.com> | 2025-05-14 19:16:21 +0200 |
---|---|---|
committer | Mikolaj Konarski <mikolaj.konarski@funktory.com> | 2025-05-14 19:16:35 +0200 |
commit | 554eff1ebc7bf4f467c8566a0e22b8a0cfb9d0a4 (patch) | |
tree | 53cdebd831061cd13740134ab7dd5fdba3aa6b68 | |
parent | 03626ae119438452551962359b5d445a4ddbc0b3 (diff) |
Rename the three main public tensor API modules
-rw-r--r-- | bench/Main.hs | 4 | ||||
-rw-r--r-- | ox-arrays.cabal | 6 | ||||
-rw-r--r-- | src/Data/Array/Nested.hs | 6 | ||||
-rw-r--r-- | src/Data/Array/Nested/Internal/Convert.hs | 6 | ||||
-rw-r--r-- | src/Data/Array/Nested/Mixed.hs (renamed from src/Data/Array/Nested/Internal/Mixed.hs) | 2 | ||||
-rw-r--r-- | src/Data/Array/Nested/Ranked.hs (renamed from src/Data/Array/Nested/Internal/Ranked.hs) | 4 | ||||
-rw-r--r-- | src/Data/Array/Nested/Shaped.hs (renamed from src/Data/Array/Nested/Internal/Shaped.hs) | 4 |
7 files changed, 16 insertions, 16 deletions
diff --git a/bench/Main.hs b/bench/Main.hs index 276a38a..e5ef4d1 100644 --- a/bench/Main.hs +++ b/bench/Main.hs @@ -17,8 +17,8 @@ import Text.Show (showListWith) import Data.Array.Mixed.XArray (XArray(..)) import Data.Array.Nested -import Data.Array.Nested.Internal.Mixed (Mixed(M_Primitive), mliftPrim, mliftPrim2, toPrimitive) -import Data.Array.Nested.Internal.Ranked (liftRanked1, liftRanked2) +import Data.Array.Nested.Mixed (Mixed(M_Primitive), mliftPrim, mliftPrim2, toPrimitive) +import Data.Array.Nested.Ranked (liftRanked1, liftRanked2) import Data.Array.Strided.Arith.Internal qualified as Arith diff --git a/ox-arrays.cabal b/ox-arrays.cabal index 2a15cbb..f62f961 100644 --- a/ox-arrays.cabal +++ b/ox-arrays.cabal @@ -53,10 +53,10 @@ library Data.Array.Mixed.Types Data.Array.Mixed.XArray Data.Array.Nested.Internal.Convert - Data.Array.Nested.Internal.Mixed Data.Array.Nested.Internal.Lemmas - Data.Array.Nested.Internal.Ranked - Data.Array.Nested.Internal.Shaped + Data.Array.Nested.Mixed + Data.Array.Nested.Ranked + Data.Array.Nested.Shaped Data.Array.Nested.Mixed.Shape Data.Array.Nested.Ranked.Shape Data.Array.Nested.Shaped.Shape diff --git a/src/Data/Array/Nested.hs b/src/Data/Array/Nested.hs index 8198a54..af195ee 100644 --- a/src/Data/Array/Nested.hs +++ b/src/Data/Array/Nested.hs @@ -106,9 +106,9 @@ import Prelude hiding (mappend, mconcat) import Data.Array.Mixed.Permutation import Data.Array.Mixed.Types import Data.Array.Nested.Internal.Convert -import Data.Array.Nested.Internal.Mixed -import Data.Array.Nested.Internal.Ranked -import Data.Array.Nested.Internal.Shaped +import Data.Array.Nested.Mixed +import Data.Array.Nested.Ranked +import Data.Array.Nested.Shaped import Data.Array.Nested.Mixed.Shape import Data.Array.Nested.Ranked.Shape import Data.Array.Nested.Shaped.Shape diff --git a/src/Data/Array/Nested/Internal/Convert.hs b/src/Data/Array/Nested/Internal/Convert.hs index 4e0f17d..611b45e 100644 --- a/src/Data/Array/Nested/Internal/Convert.hs +++ b/src/Data/Array/Nested/Internal/Convert.hs @@ -14,9 +14,9 @@ import Data.Type.Equality import Data.Array.Mixed.Lemmas import Data.Array.Mixed.Types import Data.Array.Nested.Internal.Lemmas -import Data.Array.Nested.Internal.Mixed -import Data.Array.Nested.Internal.Ranked -import Data.Array.Nested.Internal.Shaped +import Data.Array.Nested.Mixed +import Data.Array.Nested.Ranked +import Data.Array.Nested.Shaped import Data.Array.Nested.Mixed.Shape import Data.Array.Nested.Shaped.Shape diff --git a/src/Data/Array/Nested/Internal/Mixed.hs b/src/Data/Array/Nested/Mixed.hs index a979d6c..50a1b71 100644 --- a/src/Data/Array/Nested/Internal/Mixed.hs +++ b/src/Data/Array/Nested/Mixed.hs @@ -16,7 +16,7 @@ {-# LANGUAGE TypeOperators #-} {-# LANGUAGE UndecidableInstances #-} {-# LANGUAGE ViewPatterns #-} -module Data.Array.Nested.Internal.Mixed where +module Data.Array.Nested.Mixed where import Prelude hiding (mconcat) diff --git a/src/Data/Array/Nested/Internal/Ranked.hs b/src/Data/Array/Nested/Ranked.hs index 368e337..fb5caa9 100644 --- a/src/Data/Array/Nested/Internal/Ranked.hs +++ b/src/Data/Array/Nested/Ranked.hs @@ -17,7 +17,7 @@ {-# LANGUAGE ViewPatterns #-} {-# OPTIONS_GHC -fplugin GHC.TypeLits.Normalise #-} {-# OPTIONS_GHC -fplugin GHC.TypeLits.KnownNat.Solver #-} -module Data.Array.Nested.Internal.Ranked where +module Data.Array.Nested.Ranked where import Prelude hiding (mappend, mconcat) @@ -43,7 +43,7 @@ import Data.Array.Mixed.Permutation import Data.Array.Mixed.Types import Data.Array.Mixed.XArray (XArray(..)) import Data.Array.Mixed.XArray qualified as X -import Data.Array.Nested.Internal.Mixed +import Data.Array.Nested.Mixed import Data.Array.Nested.Mixed.Shape import Data.Array.Nested.Ranked.Shape import Data.Array.Strided.Arith diff --git a/src/Data/Array/Nested/Internal/Shaped.hs b/src/Data/Array/Nested/Shaped.hs index 1415815..ba767cd 100644 --- a/src/Data/Array/Nested/Internal/Shaped.hs +++ b/src/Data/Array/Nested/Shaped.hs @@ -16,7 +16,7 @@ {-# LANGUAGE ViewPatterns #-} {-# OPTIONS_GHC -fplugin GHC.TypeLits.Normalise #-} {-# OPTIONS_GHC -fplugin GHC.TypeLits.KnownNat.Solver #-} -module Data.Array.Nested.Internal.Shaped where +module Data.Array.Nested.Shaped where import Prelude hiding (mappend, mconcat) @@ -44,7 +44,7 @@ import Data.Array.Mixed.Types import Data.Array.Mixed.XArray (XArray) import Data.Array.Mixed.XArray qualified as X import Data.Array.Nested.Internal.Lemmas -import Data.Array.Nested.Internal.Mixed +import Data.Array.Nested.Mixed import Data.Array.Nested.Mixed.Shape import Data.Array.Nested.Shaped.Shape import Data.Array.Strided.Arith |