From 1496e0262e63edc9b004d53a917efef9e9c2dca7 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Wed, 17 Apr 2024 12:19:18 +0200 Subject: Fix haddocks formatting --- src/Data/Array/Nested/Internal.hs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/Data/Array/Nested/Internal.hs b/src/Data/Array/Nested/Internal.hs index b0c0e56..f769870 100644 --- a/src/Data/Array/Nested/Internal.hs +++ b/src/Data/Array/Nested/Internal.hs @@ -377,14 +377,14 @@ checkBounds (_ ::? sh') (() :$? ssh') = checkBounds sh' ssh' -- | Create an array given a size and a function that computes the element at a -- given index. -- --- **WARNING**: It is required that every @a@ returned by the argument to +-- __WARNING__: It is required that every @a@ returned by the argument to -- 'mgenerate' has the same shape. For example, the following will throw a -- runtime error: -- --- foo :: Mixed [Nothing] (Mixed [Nothing] Double) --- foo = mgenerate (10 ::: IZR) $ \(i ::: IZR) -> --- mgenerate (i ::: IZR) $ \(j ::: IZR) -> --- ... +-- > foo :: Mixed [Nothing] (Mixed [Nothing] Double) +-- > foo = mgenerate (10 ::: IZR) $ \(i ::: IZR) -> +-- > mgenerate (i ::: IZR) $ \(j ::: IZR) -> +-- > ... -- -- because the size of the inner 'mgenerate' is not always the same (it depends -- on @i@). Nested arrays in @ox-arrays@ are always stored fully flattened, so @@ -817,7 +817,7 @@ rindexPartial (Ranked arr) idx = (rewriteMixed (lemReplicatePlusApp (Proxy @n) (Proxy @m) (Proxy @Nothing)) arr) (ixCvtRX idx)) --- | **WARNING**: All values returned from the function must have equal shape. +-- | __WARNING__: All values returned from the function must have equal shape. -- See the documentation of 'mgenerate' for more details. rgenerate :: forall n a. Elt a => IxR n -> (IxR n -> a) -> Ranked n a rgenerate sh f @@ -943,7 +943,7 @@ sindexPartial (Shaped arr) idx = (rewriteMixed (lemMapJustPlusApp (Proxy @sh1) (Proxy @sh2)) arr) (ixCvtSX idx)) --- | **WARNING**: All values returned from the function must have equal shape. +-- | __WARNING__: All values returned from the function must have equal shape. -- See the documentation of 'mgenerate' for more details. sgenerate :: forall sh a. (KnownShape sh, Elt a) => (IxS sh -> a) -> Shaped sh a sgenerate f -- cgit v1.2.3-70-g09d2