git-annex sim command is working
Had to add Read instances to Key and NumCopies and some other similar types. I only expect to use those in serializing a sim. Of course, this risks that implementation changes break reading old data. For a sim, that would not be a big problem.
This commit is contained in:
parent
7e8274c6b7
commit
52891711d2
10 changed files with 284 additions and 155 deletions
|
@ -68,7 +68,7 @@ instance NFData KeyData
|
|||
data Key = MkKey
|
||||
{ keyData :: KeyData
|
||||
, keySerialization :: S.ShortByteString
|
||||
} deriving (Show, Generic)
|
||||
} deriving (Show, Read, Generic)
|
||||
|
||||
instance Eq Key where
|
||||
-- comparing the serialization would be unnecessary work
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue