mirror of
https://github.com/github/semantic.git
synced 2024-11-28 10:15:55 +03:00
we just say pure
This commit is contained in:
parent
f6d8db46e8
commit
54c86748ad
@ -79,7 +79,7 @@ testDiff :: Renderer T.Text String -> Both FilePath -> Maybe FilePath -> (String
|
||||
testDiff renderer paths diff matcher = do
|
||||
let parser = parserForFilepath (fst paths)
|
||||
sources <- sequence $ readAndTranscodeFile <$> paths
|
||||
let sourceBlobs = Both (S.SourceBlob, S.SourceBlob) <*> sources <*> pure mempty <*> paths <*> Both (Just (S.PlainBlob 0o100644), Just (S.PlainBlob 0o100644))
|
||||
let sourceBlobs = Both (S.SourceBlob, S.SourceBlob) <*> sources <*> pure mempty <*> paths <*> pure (Just (S.PlainBlob 0o100644)
|
||||
actual <- diffFiles parser renderer sourceBlobs
|
||||
case diff of
|
||||
Nothing -> matcher actual actual
|
||||
|
Loading…
Reference in New Issue
Block a user