Skip to content

Commit

Permalink
Use importPrim
Browse files Browse the repository at this point in the history
  • Loading branch information
paf31 authored Jul 11, 2017
1 parent 82427f3 commit d14f1f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ server bundled externs initEnv port = do
Right (_, m) | P.getModuleName m == P.ModuleName [P.ProperName "Main"] -> do
(resultMay, _) <- runLogger' . runExceptT . flip runReaderT P.defaultOptions $ do
((P.Module ss coms moduleName elaborated exps, env), nextVar) <- P.runSupplyT 0 $ do
[desugared] <- P.desugar externs [P.addDefaultImport (P.Qualified Nothing (P.ModuleName [P.ProperName "Prim"])) m]
[desugared] <- P.desugar externs [P.importPrim m]
P.runCheck' (P.emptyCheckState initEnv) $ P.typeCheckModule desugared
regrouped <- P.createBindingGroups moduleName . P.collapseBindingGroups $ elaborated
let mod' = P.Module ss coms moduleName regrouped exps
Expand Down

0 comments on commit d14f1f4

Please sign in to comment.