fix build on old ghc
This commit is contained in:
parent
015a3f6061
commit
7a36d31012
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ type OptInfo a = Either (IO a) a
|
||||||
-- If the OptInfo is not available, accessing it may result in eg an
|
-- If the OptInfo is not available, accessing it may result in eg an
|
||||||
-- exception being thrown.
|
-- exception being thrown.
|
||||||
getInfo :: MonadIO m => OptInfo a -> m a
|
getInfo :: MonadIO m => OptInfo a -> m a
|
||||||
getInfo (Right i) = pure i
|
getInfo (Right i) = return i
|
||||||
getInfo (Left e) = liftIO e
|
getInfo (Left e) = liftIO e
|
||||||
|
|
||||||
type FileMatcherMap a = M.Map UUID (Utility.Matcher.Matcher (S.Set UUID -> MatchInfo -> a Bool))
|
type FileMatcherMap a = M.Map UUID (Utility.Matcher.Matcher (S.Set UUID -> MatchInfo -> a Bool))
|
||||||
|
|
Loading…
Reference in a new issue