@hackage command-qq0.3.0.0

Quasiquoters for external commands

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