- Expression example
- How it works
- The QuasiQuoter type
- The Q monad
- Relationship to Template Haskell
If you do not feel that Haskell’s syntax is suitable for the task at hand, quasi-quotation allows you to write, within your Haskell source code, miniature programs in some other language. When your Haskell program gets compiled, the mini-programs inside it get compiled as well.
Although this concept sounds rather extravagant, many of its applications are quite modest. Some uses of quasi-quotes include:The
modern-uri package provides quasi-quoters for writing URLs.