command-qq: Quasiquoters for external commands

[ bsd3, library, system ] [ Propose Tags ]


[sh| echo hello world! |]
ghci = QQ.quoter $ QQ.callCommand "ghc" ["-ignore-dot-ghci", "-e"]
class Embed a where
  embed :: a -> String

instance Embed String
  embed = id

main :: IO ()
main = let excl = replicate 3 '!' in -- I'd love to show an example but haddock markup fails here
class Eval r where
  eval :: String -> [String] -> r

instance Eval (IO ExitCode) where
  eval command args = System.Process.rawSystem command args
Versions [faq],,,,
Dependencies base (==4.*), process, template-haskell, unix [details]
License BSD-3-Clause
Author Matvey Aksenov
Category System
Home page
Source repo head: git clone
Uploaded by MatveyAksenov at Thu Aug 22 08:51:34 UTC 2013
Distributions NixOS:
Downloads 3495 total (42 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs uploaded by user
Build status unknown [no reports yet]




Maintainer's Corner

For package maintainers and hackage trustees