on master help sign in
Merge pull request #3795 from kaeluka/patch-1

Docs: ``ElabReflection`` needs explicit enabling

commita750910d077da4f97d3ab19f1576fe1b5e85f001 authorAhmad Salim Al-Sibahi <asal@itu.dk> dateWed 19 Jul 2017, 10:45 (9 years ago) parent6e109398c3ecb8
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