Skip to content

Commit

Permalink
Disambiguate where the suggested 'force' function comes from
Browse files Browse the repository at this point in the history
Follow-up to PR haskell#231.

Users could easily be misled that it's `Control.DeepSeq.force`, not `Data.Vector.force`,
and the former does not fix the issue at all.
  • Loading branch information
nh2 committed Aug 11, 2020
1 parent 56e20cc commit 5f6972d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Data/Vector/Mutable.hs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ loopM !n k = let
in go 0

uninitialised :: a
uninitialised = error "Data.Vector.Mutable: uninitialised element. If you are trying to compact a vector, use the 'force' function to remove uninitialised elements from the underlying array."
uninitialised = error "Data.Vector.Mutable: uninitialised element. If you are trying to compact a vector, use the 'Data.Vector.force' function to remove uninitialised elements from the underlying array."

-- Length information
-- ------------------
Expand Down

0 comments on commit 5f6972d

Please sign in to comment.