And again...

This commit is contained in:
Edwin Brady 2019-05-11 22:26:08 +01:00
parent 905820efed
commit 6c00349274

View File

@ -0,0 +1,21 @@
module Core.InitPrimitives
import Core.Context
import Core.Primitives
import Core.TT
-- import Data.NameMap
%default covering
addPrim : {auto c : Ref Ctxt Defs} ->
Prim -> Core ()
addPrim p
= do addBuiltin (opName (fn p)) (type p) (totality p) (fn p)
-- compileDef empty (opName (fn p))
export
addPrimitives : {auto c : Ref Ctxt Defs} -> Core ()
addPrimitives
= do traverse addPrim allPrimitives
pure ()