command-qq: Quasiquoters for external commands

[ bsd3, library, system ] [ Propose Tags ]

Features:

[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] 0.1.0.0, 0.2.0.0, 0.2.1.0, 0.2.2.0, 0.3.0.0
Dependencies base (==4.*), process, template-haskell, unix [details]
License BSD-3-Clause
Author Matvey Aksenov
Maintainer matvey.aksenov@gmail.com
Category System
Home page http://biegunka.github.io/command-qq/
Source repo head: git clone https://github.com/biegunka/command-qq
Uploaded by MatveyAksenov at Thu Aug 22 08:51:34 UTC 2013
Distributions NixOS:0.3.0.0
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]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees