fix build on old ghc

This commit is contained in:
Joey Hess 2016-01-26 15:12:16 -04:00
parent 015a3f6061
commit 7a36d31012
Failed to extract signature

View file

@ -33,7 +33,7 @@ type OptInfo a = Either (IO a) a
-- If the OptInfo is not available, accessing it may result in eg an
-- exception being thrown.
getInfo :: MonadIO m => OptInfo a -> m a
getInfo (Right i) = pure i
getInfo (Right i) = return i
getInfo (Left e) = liftIO e
type FileMatcherMap a = M.Map UUID (Utility.Matcher.Matcher (S.Set UUID -> MatchInfo -> a Bool))