on master help sign in
Merge pull request #2975 from bitemyapp/patch-1

Just/Nothing for intro was split into intro/intro'

commit2db63e88d24b84fecf1c9af4ddf709a20101d83c authorDavid Christiansen <david@davidchristiansen.dk> dateTue 16 Feb 2016, 06:31 (11 years ago) parent60f2277291ccdc
1 file changed+4−4
docs/reference/elaborator-reflection.rst+4−4
docs/reference/elaborator-reflection.rst+4−4
@@ -37,8 +37,8 @@ For example, the following script constructs the identity function at type ``Nat
3737.. code-block:: idris
3838
3939 idNat : Nat -> Nat
40− idNat = %runElab (do intro (Just (UN "x"))
41− fill (Var (UN "x"))
40+ idNat = %runElab (do intro `{{x}}
41+ fill (Var `{{x}})
4242 solve)
4343
4444
@@ -57,8 +57,8 @@ We can generate identity functions at any concrete type using the same script:
5757.. code-block:: idris
5858
5959 mkId : Elab ()
60− mkId = do intro (Just (UN "x"))
61− fill (Var (UN "x"))
60+ mkId = do intro `{{x}}
61+ fill (Var `{{x}})
6262 solve
6363
6464 idNat : Nat -> Nat