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

Nar module cleanups #41

Closed
wants to merge 4 commits into from
Closed

Nar module cleanups #41

wants to merge 4 commits into from

Conversation

shlevy
Copy link
Member

@shlevy shlevy commented Mar 23, 2019

No description provided.

Nar handling, and Nix in general, only really makes sense in the
context of Unix-style file paths. And even outside of Unix land,
FilePath is a bad interface.

This commit also moves narEffectsIO into a local definition in the
test suite, to avoid a unix dependency in the core library. This
should eventually be moved into a separate library (and defined
directly in terms of the RawFilePath operations).
@shlevy shlevy requested a review from imalsogreg March 23, 2019 14:52
@shlevy
Copy link
Member Author

shlevy commented Mar 23, 2019

Still a draft, will mark ready once the module is up to spec

@shlevy shlevy closed this Mar 23, 2019
@shlevy shlevy reopened this Mar 23, 2019
Copy link
Collaborator

@imalsogreg imalsogreg left a comment

Choose a reason for hiding this comment

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

Good reorg. Only nits to change.

}


-- Directly taken from Eelco thesis
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we know what this comment was referring to? The whole module, Nar effects? Probably not the Nar newtype.


putContents :: Int64 -> BSL.ByteString -> B.Put
putContents fSize bs = str "contents" <> int fSize <> (pad fSize bs)
-- putContents fSize bs = str "contents" <> int (BSL.length bs) <> (pad fSize bs)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Stale comment

@imalsogreg
Copy link
Collaborator

(meta). Does Draft mean, hold off on commenting for now?

@shlevy
Copy link
Member Author

shlevy commented Mar 23, 2019

Draft means I'm still expecting more to come (in particular, so far I've only touched NarEffects and still need to go through the rest and add haddocks etc.), but still ready for comments on what's come so far.

Also, I'm trying to make to so every commit is in a workable state, so that if someone wants to depend on this before I'm done we can merge in and I can continue the rest later.

@Anton-Latukha Anton-Latukha marked this pull request as ready for review January 7, 2021 20:00
@sorki
Copy link
Member

sorki commented Nov 25, 2023

The last commit e5f1c7d was ported to hnix-store-nar in #259 (prompted via #252).

The rest is kind-of obsolete maybe except for the RawFilePath patch but the new filepath would be a better fit, see also #237

Closing

@sorki sorki closed this Nov 25, 2023
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