command-qq

Quasiquoters for external commands

http://biegunka.github.io/command-qq/

Latest on Hackage:0.3.1.0

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD-2-Clause licensed by Matvey Aksenov
Maintained by [email protected]

Features:

  • Quasiquotation syntax for external interpreters

>>> [sh_| echo hello world! |]
hello world!
  • Custom quasiquoters

ghci = quoter $ callCommand "ghc" ["-ignore-dot-ghci", "-e"]

Then you can use ghci in ghci!

>>> [ghci| putStrLn "hello world!" |] :: IO ()
hello world!

For more examples, see System.Command.QQ.Predef

  • Haskell values embedding

See README.md for an example

  • DSLs

See examples/CommandT.hs