Closed d3adb5 closed 1 year ago
This should be ready for a review whenever you're available, @lucasoshiro. I would've liked to put more time into it, but life got busier. Don't want to hold you back in case you're not devoting time to the project because of this PR. :P
@lucasoshiro Humble reminder to review this PR... :smiling_face_with_tear:
Built on top of #3, this PR adds further minor improvements and tests that use QuickCheck for property testing.
Summary of changes since #3:
Core.Core
:String
forFileMode
.Read
andShow
forFileMode
replaced the parse/unparse functions.Core.Object
:newtype
keyword is now used forTree
andBlob
for added strictness.looseObjectExists
andhashPath
functions were refactored for the sake of brevity.storeObject
, using a new instance ofArbitrary
forBlob
.filepath
andextra
packages,storeObject
was rewritten.Read
andShow
forObjectType
replaced the parse/unparse functions.Commit
,Tree
, andBlob
objects was split into separate files. Kind of WIP.Util.Util
:zipMap
now usesintersectionWith
, fromData.Map
.listDirectoryRecursive
was rewritten using fewer lines, with a change in the order of the output list.compress
anddecompress
were moved to the module.Until #3 is merged, this pull request will remain as a draft.