Skip to content

Export data constructor for boxed vector #245

Description

@andrewthad

The module Data.Vector does not export the data constructor for Vector. Exporting this would make it possible to use vector's functions in contexts where I am working with an unsliced Array and want to fold over a slice of it. In general, I would like to see all of the data constructors exported.

@cartazio In #49, this is the same position you take. Do you still agree?

Activity

  1. chessai commented on May 15, 2019

    @chessai
    Member
  2. cartazio commented on May 15, 2019

    @cartazio
    Contributor
  3. Shimuuar commented on May 15, 2019

    @Shimuuar
    Contributor

    I think exporting constructor from Data.Vector is wrong. It's trivial to create memory unsafe vector value: Vector 0 10000 []. It's probably better to export it from some *.Internal module. It would make obvious that it is dangerous.

  4. andrewthad commented on May 15, 2019

    @andrewthad
    ContributorAuthor

    I don't care what module it comes from. Either Data.Vector.Unsafe or Data.Vector.Internal would be fine to me.

  5. cartazio commented on May 15, 2019

    @cartazio
    Contributor
  6. added this to the 0.13 milestone on Jun 11, 2020
  7. added 2 commits that reference this issue on May 22, 2022
    1505862
    f9786ca
  8. lehins commented on Jun 19, 2022

    @lehins
    Contributor

    Fixed in #434 by providing functions that give access to boxed Vector's internal Array

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions