diff --git a/src/Language/PHP/Syntax.hs b/src/Language/PHP/Syntax.hs index 492e5159a..8b8e47c5c 100644 --- a/src/Language/PHP/Syntax.hs +++ b/src/Language/PHP/Syntax.hs @@ -48,7 +48,7 @@ resolvePHPName :: ( Member (Modules address value) effects -> Evaluator address value effects ModulePath resolvePHPName n = do modulePath <- resolve [name] - maybe (throwResumable $ NotFoundError name [name] Language.PHP) pure modulePath + maybeM (throwResumable $ NotFoundError name [name] Language.PHP) modulePath where name = toName n toName = BC.unpack . dropRelativePrefix . stripQuotes