Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/swarm-lang/Swarm/Language/Typecheck.hs
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ inferTop ::
Has (Error ContextualTypeErr) sig m =>
TCtx -> ReqCtx -> TDCtx -> SourceMap Resolved -> Syntax Resolved -> m (SyntaxWithImports Typed)
inferTop ctx reqCtx tdCtx srcMap =
fmap (uncurry (SyntaxWithImports Nothing)) -- XXX SyntaxWithImports Nothing?
fmap (uncurry (SyntaxWithImports Nothing)) -- XXX SyntaxWithImports Nothing?
. runTC ctx reqCtx tdCtx Ctx.empty srcMap
. infer

Expand All @@ -898,7 +898,7 @@ checkTop ::
Has (Error ContextualTypeErr) sig m =>
TCtx -> ReqCtx -> TDCtx -> SourceMap Resolved -> Syntax Resolved -> Type -> m (SyntaxWithImports Typed)
checkTop ctx reqCtx tdCtx srcMap t =
fmap (uncurry (SyntaxWithImports Nothing)) -- XXX SyntaxWithImports Nothing?
fmap (uncurry (SyntaxWithImports Nothing)) -- XXX SyntaxWithImports Nothing?
. runTC ctx reqCtx tdCtx Ctx.empty srcMap
. check t
. toU
Expand Down