on master help sign in
Just/Nothing for intro was split into intro/intro'
291ccdcChris Allen
docs/reference/elaborator-reflection.rst+4−4
@@ -37,8 +37,8 @@ For example, the following script constructs the identity function at type ``Nat
37.. code-block:: idris
37.. code-block:: idris
38
38
39 idNat : Nat -> Nat
39 idNat : Nat -> Nat
40− idNat = %runElab (do intro (Just (UN "x"))
40+ idNat = %runElab (do intro `{{x}}
41− fill (Var (UN "x"))
41+ fill (Var `{{x}})
42 solve)
42 solve)
43
43
44
44
@@ -57,8 +57,8 @@ We can generate identity functions at any concrete type using the same script:
57.. code-block:: idris
57.. code-block:: idris
58
58
59 mkId : Elab ()
59 mkId : Elab ()
60− mkId = do intro (Just (UN "x"))
60+ mkId = do intro `{{x}}
61− fill (Var (UN "x"))
61+ fill (Var `{{x}})
62 solve
62 solve
63
63
64 idNat : Nat -> Nat
64 idNat : Nat -> Nat