-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbash-config.cabal
75 lines (66 loc) · 2.07 KB
/
bash-config.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
name: bash-config
version: 0.1.0
category: Data, Language, Compilers/Interpreters
license: BSD3
license-file: LICENSE
author: Kyle Raftogianis
maintainer: Kyle Raftogianis <[email protected]>
copyright: Copyright (c) 2013 Kyle Raftogianis
build-type: Simple
cabal-version: >= 1.8
homepage: http://github.com/knrafto/bash-config/
bug-reports: http://github.com/knrafto/bash-config/issues
synopsis: Safely interpret Bash scripts as configuration files
description:
This package allows Bash configuration files to be parsed and interpreted
from Haskell, without executing any commands. Many shell scripts use
these as configuration files, which are intended to be sourced for
shell variable assignments.
.
This library fully parses Bash scripts, but can only interpret a limited
subset of Bash. No commands are actually executed. Since this in theory
could limit the ability to interpret a configuration file, the interpreter
only returns variables it is sure are correct; all other variables are
unknown. In practice, however, configuration scripts are simple enough
and pure enough for the library to interpret completely.
extra-source-files:
.gitignore
README.md
tests/*.sh
source-repository head
type: git
location: git://github.com/knrafto/bash-config.git
library
hs-source-dirs: src
exposed-modules:
Bash.Config
other-modules:
Bash.Config.Cond
Bash.Config.Expand
Bash.Config.Eval
Bash.Config.Lexer
Bash.Config.Parser
Bash.Config.Types
Bash.Config.Word
build-depends:
base >= 4 && < 5,
containers >= 0.4 && < 0.6,
mtl >= 2 && < 3,
parsec >= 3 && < 4,
transformers >= 0.2 && < 0.4
ghc-options: -Wall -O2
test-suite tests
type: exitcode-stdio-1.0
main-is: Tests.hs
hs-source-dirs: tests
ghc-options: -Wall -threaded
build-depends:
base,
bash-config,
containers,
directory,
filepath,
mtl,
parsec,
tasty,
transformers