-
Notifications
You must be signed in to change notification settings - Fork 139
Add MINIMAL pragma to Vector & MVector type classes #289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
dc5f339
to
9b65b8e
Compare
Yes, list is indeed minimal. I also thrown in fix for #213 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few suggestion on haddock, otherwise looks great
Data/Vector/Mutable.hs
Outdated
-- | Create a mutable vector of the given length. The vector content | ||
-- should be presumed uninitialized. However exact semantics depends | ||
-- on vector implementation. For example unboxed and storable | ||
-- vectors will create vector filled with whatever underlying memory | ||
-- buffer happens to contain, while boxed vector initializes every | ||
-- element to @error "..."@. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-- | Create a mutable vector of the given length. The vector content | |
-- should be presumed uninitialized. However exact semantics depends | |
-- on vector implementation. For example unboxed and storable | |
-- vectors will create vector filled with whatever underlying memory | |
-- buffer happens to contain, while boxed vector initializes every | |
-- element to @error "..."@. | |
-- | Create a mutable vector of the given length. Boxed vector is | |
-- initialized with every element set to @error "..."@. | |
-- | |
-- @since 0.5 |
I'd probably say that elements of boxed vectors are initialized with bottoms, but do not overspecify whether it is |
At the moment only checked that MINIMAL is indeed minimal and no method is ⊥ by visual inspection
Fixes #11