Skip to content

Commit b1e436a

Browse files
committed
Fix build
1 parent 7671eb2 commit b1e436a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Path/IO.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ resolveFile x y =
7373
Just fp -> return fp
7474

7575
-- Internal helper to define resolveDirMaybe and resolveFileMaybe in one
76-
resolveCheckParse :: (Functor m, MonadIO m)
76+
resolveCheckParse :: (MonadIO m)
7777
=> (FilePath -> IO Bool) -- check if file/dir does exist
7878
-> (FilePath -> m a) -- parse into absolute file/dir
7979
-> Path Abs Dir
@@ -85,7 +85,7 @@ resolveCheckParse check parse x y = do
8585
if exists
8686
then do
8787
canonic <- liftIO $ canonicalizePath fp
88-
fmap Just (parse canonic)
88+
liftM Just (parse canonic)
8989
else return Nothing
9090

9191
-- | Appends a stringly-typed relative path to an absolute path, and then

0 commit comments

Comments
 (0)