1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 10:15:55 +03:00

Revert "Placate hlint."

This reverts commit d278a01122.
This commit is contained in:
Rob Rix 2020-01-06 15:13:55 -05:00
parent d278a01122
commit e34444eaf9
No known key found for this signature in database
GPG Key ID: 2BE643E01DC032AE

View File

@ -58,7 +58,7 @@ assertEvaluatesTo :: Term (Ann Span :+: Core) Name -> Text -> Concrete (Term (An
assertEvaluatesTo core k val = do assertEvaluatesTo core k val = do
prelude <- parsePrelude prelude <- parsePrelude
let withPrelude = (named' "__semantic_prelude" :<- prelude) >>>= core let withPrelude = (named' "__semantic_prelude" :<- prelude) >>>= core
allTogether <- maybeM (HUnit.assertFailure ("Cant evaluate open term: " <> showCore (stripAnnotations withPrelude))) (closed withPrelude) allTogether <- maybe (HUnit.assertFailure ("Cant evaluate open term: " <> showCore (stripAnnotations withPrelude))) pure (closed withPrelude)
let filius = [File (Path.absRel "<interactive>") (Span (Pos 1 1) (Pos 1 1)) allTogether] let filius = [File (Path.absRel "<interactive>") (Span (Pos 1 1) (Pos 1 1)) allTogether]
(heap, env) <- case Concrete.concrete Eval.eval filius of (heap, env) <- case Concrete.concrete Eval.eval filius of