Skip to content

Commit

Permalink
Minor corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahnfelt committed Mar 8, 2012
1 parent 1209c5d commit b12d2cf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.rest
Expand Up @@ -442,7 +442,8 @@ In the above example, the underscore is inferred to have the type ``Maybe a``, s
Macros Macros
====== ======


A macro is simply a function that takes a string and produces some definitions using the Macro monad:: A macro in Keen is a function that is evaluated at compile time, allowing you to generate parts of your program.
These are ordinary Keen functions, but take a string and produces some definitions using the Macro monad::


derive : String -> Macro () derive : String -> Macro ()


Expand All @@ -464,7 +465,7 @@ Special functions are available in the ``Macro`` monad that can mark files as de


Definitions before a macro invocation cannot refer to definitions after that macro invocation. Definitions before a macro invocation cannot refer to definitions after that macro invocation.


All the type information for definitions above a macro is available to that macro. All the type information for definitions above a macro is available for that macro to inspect.


Modules Modules
======= =======
Expand Down

0 comments on commit b12d2cf

Please sign in to comment.