on master help sign in
Docs: ``ElabReflection`` needs explicit enabling
commit8c3ecb8179f5eec9cf17fdc16c4e35a17d974947 authorStephan Brandauer <stephan.brandauer@it.uu.se> dateMon 1 May 2017, 21:59 (9 years ago) parent391e012
1 file changed+3
docs/reference/elaborator-reflection.rst+3
docs/reference/elaborator-reflection.rst+3
@@ -32,6 +32,9 @@ Running Elaborator Scripts
3232
3333On their own, tactics have no effect.
3434The meta-operation ``%runElab script`` runs ``script`` in the current elaboration context.
35+Before you can use ``%runElab``, you will have to enable the language extension by adding
36+``%language ElabReflection`` in your file (or by passing ``-X ElabReflection`` to the
37+``idris`` executable from your command line).
3538For example, the following script constructs the identity function at type ``Nat``:
3639
3740.. code-block:: idris