packages feed

command-qq-0.3.1.0: command-qq.cabal

name:                command-qq
version:             0.3.1.0
synopsis:            Quasiquoters for external commands
description:
  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@
  .
homepage:            http://biegunka.github.io/command-qq/
license:             BSD2
license-file:        LICENSE
author:              Matvey Aksenov
maintainer:          matvey.aksenov@gmail.com
category:            System
build-type:          Simple
cabal-version:       >= 1.10
extra-source-files:
  CHANGELOG.md
  README.md
  example/CommandT.hs

source-repository head
  type:              git
  location:          https://github.com/biegunka/command-qq

source-repository this
  type:              git
  location:          https://github.com/biegunka/command-qq
  tag:               0.3.1.0

library
  default-language:  Haskell2010
  build-depends:
      base == 4.*
    , process
    , template-haskell
    , text
  hs-source-dirs:    src
  exposed-modules:
    System.Command.QQ
    System.Command.QQ.Embed
    System.Command.QQ.Eval
    System.Command.QQ.Predef

test-suite doctests
  default-language:  Haskell2010
  type:              exitcode-stdio-1.0
  build-depends:
      base == 4.*
    , doctest
    , transformers
  hs-source-dirs:    test
  main-is:           Doctests.hs

test-suite spec
  default-language:  Haskell2010
  type:              exitcode-stdio-1.0
  build-depends:
      base == 4.*
    , hspec
    , command-qq
    , template-haskell
    , text
  hs-source-dirs:
      test
    , example
  main-is:           Spec.hs
  other-modules:
    System.Command.QQ.EmbedSpec
    System.Command.QQ.EvalSpec
    System.Command.QQ.PredefSpec
    System.Command.QQSpec