mirror of
https://github.com/idris-lang/Idris2.git
synced 2025-01-05 15:08:00 +03:00
12 lines
185 B
Idris
12 lines
185 B
Idris
|
module DeclMacro
|
||
|
|
||
|
import public Language.Reflection
|
||
|
|
||
|
export %macro
|
||
|
macroFun : Nat -> Elab Nat
|
||
|
macroFun x = pure $ x + 1
|
||
|
|
||
|
export
|
||
|
justScript : Nat -> Elab Nat
|
||
|
justScript x = pure $ x + 2
|