mirror of
https://github.com/github/semantic.git
synced 2024-11-28 01:47:01 +03:00
Auto-merged master into port-semiotic-http-interface on deployment
This commit is contained in:
commit
ebb52c15d3
@ -38,6 +38,7 @@ import Data.Range as X
|
||||
import Data.Record as X
|
||||
import Data.Source as X
|
||||
import Data.Span as X
|
||||
import Data.Sum
|
||||
import Data.Term as X
|
||||
import Parsing.Parser as X
|
||||
import Rendering.Renderer as X hiding (error)
|
||||
@ -77,6 +78,34 @@ readFilePair :: Both FilePath -> IO BlobPair
|
||||
readFilePair paths = let paths' = fmap file paths in
|
||||
runBothWith IO.readFilePair paths'
|
||||
|
||||
testEvaluating :: TermEvaluator term Precise
|
||||
(Value Precise (Eff effects))
|
||||
'[ Resumable (ValueError Precise (Eff effects))
|
||||
, Resumable (AddressError Precise (Value Precise (Eff effects)))
|
||||
, Resumable EvalError, Resumable (EnvironmentError Precise)
|
||||
, Resumable ResolutionError
|
||||
, Resumable (Unspecialized (Value Precise (Eff effects)))
|
||||
, Resumable (LoadError Precise (Value Precise (Eff effects)))
|
||||
, Fresh
|
||||
, State (Heap Precise Latest (Value Precise (Eff effects)))
|
||||
, State (ModuleTable (Maybe (Value Precise (Eff effects), Environment Precise)))
|
||||
, Trace
|
||||
]
|
||||
[(Value Precise (Eff effects), Environment Precise)]
|
||||
-> ((Either
|
||||
(SomeExc
|
||||
(Data.Sum.Sum
|
||||
'[ ValueError Precise (Eff effects)
|
||||
, AddressError Precise (Value Precise (Eff effects))
|
||||
, EvalError
|
||||
, EnvironmentError Precise
|
||||
, ResolutionError
|
||||
, Unspecialized (Value Precise (Eff effects))
|
||||
, LoadError Precise (Value Precise (Eff effects))
|
||||
]))
|
||||
[(Value Precise (Eff effects), Environment Precise)],
|
||||
EvaluatingState Precise (Value Precise (Eff effects))),
|
||||
[String])
|
||||
testEvaluating
|
||||
= run
|
||||
. runReturningTrace
|
||||
|
Loading…
Reference in New Issue
Block a user