diff --git a/src/Language/Ruby/Syntax.hs b/src/Language/Ruby/Syntax.hs index 5a47c4b3b..84b3b6c32 100644 --- a/src/Language/Ruby/Syntax.hs +++ b/src/Language/Ruby/Syntax.hs @@ -31,8 +31,8 @@ doRequire :: MonadEvaluatable location term value m doRequire name = do moduleTable <- getModuleTable case ModuleTable.lookup name moduleTable of - Nothing -> (,) <$> (fst <$> load name) <*> boolean True - Just (env, _) -> (,) <$> pure env <*> boolean False + Nothing -> (,) . fst <$> load name <*> boolean True + Just (env, _) -> (,) env <$> boolean False newtype Load a = Load { loadArgs :: [a] }