1
1
mirror of https://github.com/github/semantic.git synced 2024-12-29 18:06:14 +03:00

Add a reader effect to determine when to break.

Co-Authored-By: Ayman Nadeem <aymannadeem@gmail.com>
This commit is contained in:
Rob Rix 2018-08-03 12:16:04 -04:00
parent ad7721f209
commit 357e98115b

View File

@ -103,6 +103,7 @@ repl proxy parser paths = defaultConfig debugOptions >>= \ config -> runM . runD
modules <- topologicalSort <$> runImportGraphToModules proxy (snd <$> package)
runEvaluator
. runREPL
. runReader Always
. runTermEvaluator @_ @_ @(Value Precise (UtilEff Precise _))
. runState lowerBound
. runFresh 0
@ -171,6 +172,12 @@ step blobs recur term = do
maybe (runCommands run) (runCommand run . words) str
data Break
= Always
| Never
deriving Show
settings :: Settings IO
settings = Settings
{ complete = noCompletion