mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-25 20:51:43 +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
|