1
1
mirror of https://github.com/github/semantic.git synced 2025-01-03 21:16:12 +03:00

Functor laws.

This commit is contained in:
Rob Rix 2018-03-30 18:14:39 -04:00
parent a8d03f2f3e
commit 0d3dadb143

View File

@ -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] }