Skip to content
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

Instances for sized vectors #46

Open
expipiplus1 opened this issue May 15, 2018 · 3 comments
Open

Instances for sized vectors #46

expipiplus1 opened this issue May 15, 2018 · 3 comments

Comments

@expipiplus1
Copy link

It would be good to get your thoughts on instances for sized vectors in the vector-sized package: https://hackage.haskell.org/package/vector-sized

These instances already exist in the vector-sized package, however at lestthe Representable instance is probably going away in the next major release. See here for the discussion:
expipiplus1/vector-sized#39

vector-sized has a very light dependency tree, and is a pretty textbook example of a distributive and representable functor. It would be nice if these instances could find a new home here.

@phadej
Copy link
Collaborator

phadej commented May 15, 2018

Few comments

  • distributive is Haskell98 package.
  • With recent GHC the non-boot dependencies are tagged and base-orphans`.

So I suggest vector-sized depends on distributive.

(EDIT: I'm also 👎 on adding dependency to adjunctions, where Representable is defined).

@phadej
Copy link
Collaborator

phadej commented May 15, 2018

Addition, see https://raw.githubusercontent.com/phadej/acme-kmett/master/deps-8.4.png distributive is at the bottom of Edward's package hierarchy.

@expipiplus1
Copy link
Author

oops! I should have probably opened this against adjunctions! That's where the more heavy dependency pull in for vector-sized is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants