autobugfixing!
Converted Key to a real data type and caught all the places where I used an unconverted filename as a key. Had to loose some sanity checks around whether something is already annexed, but I guess I can add those back other ways.
This commit is contained in:
parent
490a3a828c
commit
d1071bd1fe
6 changed files with 54 additions and 38 deletions
6
Types.hs
6
Types.hs
|
@ -16,7 +16,11 @@ data State = State {
|
|||
} deriving (Show)
|
||||
|
||||
-- annexed filenames are mapped into keys
|
||||
type Key = FilePath
|
||||
data Key = Key String deriving (Eq)
|
||||
|
||||
-- show a key to convert it to a string
|
||||
instance Show Key where
|
||||
show (Key v) = v
|
||||
|
||||
-- this structure represents a key/value backend
|
||||
data Backend = Backend {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue