convert from readFileStrict
This removes that function, using file-io readFile' instead. Had to deal with newline conversion, which readFileStrict does on Windows. In a few cases, that was pretty ugly to deal with. Sponsored-by: Kevin Mueller
This commit is contained in:
parent
de1af273e0
commit
6e27b0d4d1
19 changed files with 94 additions and 71 deletions
|
@ -40,10 +40,9 @@ formatInfoFile :: GitAnnexDistribution -> String
|
|||
formatInfoFile d = replace "keyVariant = " "keyBackendName = " (show d) ++
|
||||
"\n" ++ formatGitAnnexDistribution d
|
||||
|
||||
parseInfoFile :: String -> Maybe GitAnnexDistribution
|
||||
parseInfoFile s = case lines s of
|
||||
(_oldformat:rest) -> parseGitAnnexDistribution (unlines rest)
|
||||
_ -> Nothing
|
||||
parseInfoFile :: [String] -> Maybe GitAnnexDistribution
|
||||
parseInfoFile (_oldformat:rest) = parseGitAnnexDistribution (unlines rest)
|
||||
parseInfoFile _ = Nothing
|
||||
|
||||
formatGitAnnexDistribution :: GitAnnexDistribution -> String
|
||||
formatGitAnnexDistribution d = unlines
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue