aboutsummaryrefslogtreecommitdiffstats
path: root/app/Git.hs
diff options
context:
space:
mode:
Diffstat (limited to 'app/Git.hs')
-rw-r--r--app/Git.hs6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/Git.hs b/app/Git.hs
index fd4fa53..eae3a85 100644
--- a/app/Git.hs
+++ b/app/Git.hs
@@ -95,8 +95,12 @@ readTextFileOfText :: CommitHash -> FilePath -> IO LT.Text
readTextFileOfText = readTextFileOf LT.readFile LT.decodeUtf8
readTextFileOfBS :: CommitHash -> FilePath -> IO LB.ByteString
-readTextFileOfBS = readTextFileOf LB.readFile (\x -> x)
+readTextFileOfBS = readTextFileOf LB.readFile id
-- REVIEW Suggestion: we could use `id` instead of `\x -> x`
+--
+-- REVIEW OK!
+--
+-- RESOLVED
readTextFileOf :: (FilePath -> IO a) -> (LB.ByteString -> a) -> CommitHash -> FilePath -> IO a
readTextFileOf readFile _ WorkingTree filePath =