We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7671eb2 commit b1e436aCopy full SHA for b1e436a
src/Path/IO.hs
@@ -73,7 +73,7 @@ resolveFile x y =
73
Just fp -> return fp
74
75
-- Internal helper to define resolveDirMaybe and resolveFileMaybe in one
76
-resolveCheckParse :: (Functor m, MonadIO m)
+resolveCheckParse :: (MonadIO m)
77
=> (FilePath -> IO Bool) -- check if file/dir does exist
78
-> (FilePath -> m a) -- parse into absolute file/dir
79
-> Path Abs Dir
@@ -85,7 +85,7 @@ resolveCheckParse check parse x y = do
85
if exists
86
then do
87
canonic <- liftIO $ canonicalizePath fp
88
- fmap Just (parse canonic)
+ liftM Just (parse canonic)
89
else return Nothing
90
91
-- | Appends a stringly-typed relative path to an absolute path, and then
0 commit comments