-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcommand-qq.cabal
94 lines (89 loc) · 2.1 KB
/
command-qq.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
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: [email protected]
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