Skip to content

Commit

Permalink
Update src/Data/Primitive/Contiguous/Class.hs
Browse files Browse the repository at this point in the history
Co-authored-by: Dave Barton <[email protected]>
  • Loading branch information
andrewthad and DaveBarton authored Apr 25, 2024
1 parent 2569284 commit 5ea2ed0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Data/Primitive/Contiguous/Class.hs
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,7 @@ class (Contiguous arr) => ContiguousU arr where
-- uninitialized memory at these indices. But for @SmallMutableArray@ or @Array@, these
-- are set to an error thunk, so reading from them and forcing the result
-- causes the program to crash. For @UnliftedArray@, the new elements have undefined values of an unknown type.
-- If the array is not grown, it may (or may not) be modified in place.
resize ::
(PrimMonad m, Element arr b) =>
Mutable arr (PrimState m) b ->
Expand Down

0 comments on commit 5ea2ed0

Please sign in to comment.