-
Notifications
You must be signed in to change notification settings - Fork 4
/
git-config.cabal
85 lines (80 loc) · 2.68 KB
/
git-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
76
77
78
79
80
81
82
83
84
85
cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.34.4.
--
-- see: https://github.com/sol/hpack
--
-- hash: 0ac3de1db93040d478721a0824000ff3702555fc52ec79efcb880072ae9d6728
name: git-config
version: 0.1.2
synopsis: A simple parser for Git configuration files
description: git-config is a simple 'megaparsec' parser for Git configuration files.
.
It aims to provide the simplest API possible for parsing Git configuration
files so that you can get to whatever it was you were doing.
.
A sample of this library in use:
.
> import qualified Data.Text.IO as TIO
> import Text.GitConfig.Parser (parseConfig)
>
> main :: IO ()
> main = do
> file <- TIO.readFile ".git/config"
> case parseConfig file of
> Right conf ->
> print conf
category: Library,Git
homepage: https://github.com/dogonthehorizon/git-config#readme
bug-reports: https://github.com/dogonthehorizon/git-config/issues
author: Fernando Freire
maintainer: Fernando Freire <dogonthehorizon@gmail.com>
copyright: 2022 Fernando Freire
license: BSD3
license-file: LICENSE
build-type: Simple
extra-source-files:
README.md
source-repository head
type: git
location: https://github.com/dogonthehorizon/git-config
library
hs-source-dirs:
src
default-extensions:
OverloadedStrings
ghc-options: -Wall -fno-warn-partial-type-signatures -fno-warn-name-shadowing -fwarn-tabs -fwarn-unused-imports -fwarn-missing-signatures -fwarn-incomplete-patterns
build-depends:
base >=4.7 && <5
, megaparsec >=7 && <10
, text
, unordered-containers
exposed-modules:
Text.GitConfig.Parser
other-modules:
Paths_git_config
default-language: Haskell2010
test-suite git-config-test
type: exitcode-stdio-1.0
main-is: Tasty.hs
hs-source-dirs:
test
default-extensions:
OverloadedStrings
ghc-options: -Wall -fno-warn-partial-type-signatures -fno-warn-name-shadowing -fwarn-tabs -fwarn-unused-imports -fwarn-missing-signatures -fwarn-incomplete-patterns -threaded -rtsopts -with-rtsopts=-N
build-tool-depends:
tasty-discover:tasty-discover >=4.2.1 && <4.3
build-depends:
base >=4.7 && <5
, git-config
, hedgehog
, megaparsec
, tasty
, tasty-discover
, tasty-hedgehog
, tasty-hunit
, text
, unordered-containers
other-modules:
Text.GitConfig.ParserTest
Paths_git_config
default-language: Haskell2010