more OsPath conversion (749/749)
Builds with and without OsPath build flag. Unfortunately, the test suite fails. Sponsored-by: unqueued on Patreon
This commit is contained in:
parent
20ed039d59
commit
c730d00b6e
41 changed files with 416 additions and 427 deletions
|
@ -34,12 +34,12 @@ newChangePool = atomically newTList
|
|||
data Change
|
||||
= Change
|
||||
{ changeTime :: UTCTime
|
||||
, _changeFile :: FilePath
|
||||
, _changeFile :: OsPath
|
||||
, changeInfo :: ChangeInfo
|
||||
}
|
||||
| PendingAddChange
|
||||
{ changeTime ::UTCTime
|
||||
, _changeFile :: FilePath
|
||||
, _changeFile :: OsPath
|
||||
}
|
||||
| InProcessAddChange
|
||||
{ changeTime ::UTCTime
|
||||
|
@ -55,10 +55,10 @@ changeInfoKey (AddKeyChange k) = Just k
|
|||
changeInfoKey (LinkChange (Just k)) = Just k
|
||||
changeInfoKey _ = Nothing
|
||||
|
||||
changeFile :: Change -> FilePath
|
||||
changeFile :: Change -> OsPath
|
||||
changeFile (Change _ f _) = f
|
||||
changeFile (PendingAddChange _ f) = f
|
||||
changeFile (InProcessAddChange _ ld) = fromOsPath $ keyFilename $ keySource ld
|
||||
changeFile (InProcessAddChange _ ld) = keyFilename $ keySource ld
|
||||
|
||||
isPendingAddChange :: Change -> Bool
|
||||
isPendingAddChange (PendingAddChange {}) = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue