aboutsummaryrefslogtreecommitdiff
path: root/src/Data/Array/Nested.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Data/Array/Nested.hs')
-rw-r--r--src/Data/Array/Nested.hs20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/Data/Array/Nested.hs b/src/Data/Array/Nested.hs
index bef83d1..58c0c71 100644
--- a/src/Data/Array/Nested.hs
+++ b/src/Data/Array/Nested.hs
@@ -21,6 +21,10 @@ module Data.Array.Nested (
rtoXArrayPrim, rfromXArrayPrim,
rcastToShaped, rtoMixed, rcastToMixed,
rfromOrthotope, rtoOrthotope,
+ -- ** Additional arithmetic operations
+ --
+ -- $integralRealFloat
+ rquotArray, rremArray,
-- * Shaped arrays
Shaped(Shaped),
@@ -43,6 +47,10 @@ module Data.Array.Nested (
stoXArrayPrim, sfromXArrayPrim,
stoRanked, stoMixed, scastToMixed,
sfromOrthotope, stoOrthotope,
+ -- ** Additional arithmetic operations
+ --
+ -- $integralRealFloat
+ squotArray, sremArray,
-- * Mixed arrays
Mixed,
@@ -68,6 +76,10 @@ module Data.Array.Nested (
mcastSafe, SafeMCast, SafeMCastSpec(..),
mtoRanked, mcastToShaped,
castCastable, Castable(..),
+ -- ** Additional arithmetic operations
+ --
+ -- $integralRealFloat
+ mquotArray, mremArray,
-- * Array elements
Elt,
@@ -102,3 +114,11 @@ import Data.Array.Nested.Internal.Shape
import Data.Array.Nested.Internal.Shaped
import Foreign.Storable
import GHC.TypeLits
+
+-- $integralRealFloat
+--
+-- These functions separate top-level functions, and not exposed in instances
+-- for 'RealFloat' and 'Integral', because those classes include a variety of
+-- other functions that make no sense for arrays.
+-- This problem already occurs with 'fromInteger', 'fromRational' and 'pi', but
+-- having 'Num', 'Fractional' and 'Floating' available is just too useful.