mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-11-30 12:14:17 +03:00
And again...
This commit is contained in:
parent
905820efed
commit
6c00349274
21
src/Core/InitPrimitives.idr
Normal file
21
src/Core/InitPrimitives.idr
Normal 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 ()
|
Loading…
Reference in New Issue
Block a user