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

Document moved SplitRec View to contrib #3493

Closed

Conversation

SlayerOfTheBad
Copy link
Contributor

In Idris2, Data.Vect.Views from the base library has been moved to Data.Vect.Views.Extra in the contrib library. This has so far remained undocumented in TDDwI: Changes Required.

In Idris2, `Data.Vect.Views` from the `base` library has been moved to
`Data.Vect.Views.Extra` in the `contrib` library. This has so far
remained undocumented in TDDwI: Changes Required.
Comment on lines 307 to 309
For the ``SplitRec`` view in the exercise 2 after Chapter 10-2, ``import Data.Vect.Views.Extra`` from ``contrib`` library.

For the ``VList`` view in exercise 4 after Chapter 10-2, ``import Data.List.Views.Extra`` from ``contrib`` library.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

in the exercise 2

but

in exercise 4

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I must've copy-pasted the exercise 4 line, then deleted the the in the line about exercise 4 and forgot to in the exercise 2 line. Fixed.

@mattpolzin
Copy link
Collaborator

I'd also accept a PR that moved us in the direction of disbanding this part of contrib since that's the end goal, but with no time horizon on that I think the documentation is a good addition 👍.

@mattpolzin
Copy link
Collaborator

Except for the fact that your documentation appears to be inaccurate. I see SplitRec in the base library if I'm not mistaken.

@mattpolzin
Copy link
Collaborator

Oh. Oh no. I see now that I was looking at List. So for lists the SplitRec view is in base and for Vect it is in contrib. That's plenty reason to move the Vect view into base if you ask me. I suppose this documentation change is acceptable but would you be open to migrating that Extra module into base instead?

@SlayerOfTheBad
Copy link
Contributor Author

I would be open to migrating it, I had just assumed there was some reason for Vect's SplitRec View to be in contrib whilst List's SplitRec View is in base.

If it is merely a matter of moving the files over and updating module names, I'll gladly do it. But if there is work to be done on the implementation (soundness proofs or whatever), I am not confident enough in my Idris nor Type Theory to undertake that at the moment. 😅

@mattpolzin
Copy link
Collaborator

Go ahead and do the easy thing. I’ll sanity check the code but we can also fix any bugs in it in the future regardless.

@SlayerOfTheBad
Copy link
Contributor Author

@mattpolzin I've moved SplitRec from contrib to base. I decided to make a separate PR for it and just close this one, as they are about different things.

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

Successfully merging this pull request may close these issues.

3 participants