-
Notifications
You must be signed in to change notification settings - Fork 23
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
Conversation
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).
Still a draft, will mark ready once the module is up to spec |
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.
Good reorg. Only nits to change.
} | ||
|
||
|
||
-- Directly taken from Eelco thesis |
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.
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) |
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.
Stale comment
(meta). Does |
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. |
No description provided.