File: toml-parser.cabal

package info (click to toggle)
haskell-toml-parser 1.3.2.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 312 kB
  • sloc: haskell: 2,980; yacc: 116; makefile: 3
file content (136 lines) | stat: -rw-r--r-- 3,625 bytes parent folder | download
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
cabal-version:      3.0
name:               toml-parser
version:            1.3.2.0
synopsis:           TOML 1.0.0 parser
description:
    TOML parser using generated lexers and parsers with
    careful attention to the TOML 1.0.0 semantics for
    defining tables.
license:            ISC
license-file:       LICENSE
author:             Eric Mertens
maintainer:         emertens@gmail.com
copyright:          2023 Eric Mertens
category:           Text
build-type:         Simple
tested-with:        GHC == {8.10.7, 9.0.2, 9.2.8, 9.4.8, 9.6.4, 9.8.1}

extra-doc-files:
    ChangeLog.md
    README.md

source-repository head
    type: git
    location: https://github.com/glguy/toml-parser
    tag: main

common extensions
    default-language:   Haskell2010
    default-extensions:
        BlockArguments
        DeriveDataTypeable
        DeriveGeneric
        DeriveTraversable
        EmptyCase
        FlexibleContexts
        FlexibleInstances
        GeneralizedNewtypeDeriving
        ImportQualifiedPost
        LambdaCase
        ScopedTypeVariables
        TypeOperators
        TypeSynonymInstances
        ViewPatterns

library
    import:             extensions
    hs-source-dirs:     src
    default-language:   Haskell2010
    exposed-modules:
        Toml
        Toml.FromValue
        Toml.FromValue.Generic
        Toml.FromValue.Matcher
        Toml.FromValue.ParseTable
        Toml.Generic
        Toml.Lexer
        Toml.Lexer.Token
        Toml.Located
        Toml.Parser
        Toml.Parser.Types
        Toml.Position
        Toml.Pretty
        Toml.Semantics
        Toml.Semantics.Ordered
        Toml.ToValue
        Toml.ToValue.Generic
        Toml.Value
    other-modules:
        Toml.Lexer.Utils
        Toml.Parser.Utils
    build-depends:
        array           ^>= 0.5,
        base            ^>= {4.14, 4.15, 4.16, 4.17, 4.18, 4.19},
        containers      ^>= {0.5, 0.6, 0.7},
        prettyprinter   ^>= 1.7,
        text            >= 0.2 && < 3,
        time            ^>= {1.9, 1.10, 1.11, 1.12},
        transformers    ^>= {0.5, 0.6},
    build-tool-depends:
        alex:alex       >= 3.2,
        happy:happy     >= 1.19,

test-suite unittests
    import:             extensions
    type:               exitcode-stdio-1.0
    hs-source-dirs:     test
    main-is:            Main.hs
    default-extensions:
        QuasiQuotes
    build-tool-depends:
        hspec-discover:hspec-discover ^>= {2.10, 2.11}
    build-depends:
        base,
        containers,
        hspec           ^>= {2.10, 2.11},
        template-haskell ^>= {2.16, 2.17, 2.18, 2.19, 2.20, 2.21},
        time,
        toml-parser,
    other-modules:
        DecodeSpec
        DerivingViaSpec
        FromValueSpec
        HieDemoSpec
        LexerSpec
        PrettySpec
        QuoteStr
        TomlSpec
        ToValueSpec

test-suite readme
    import:             extensions
    type:               exitcode-stdio-1.0
    main-is:            README.lhs
    ghc-options:        -pgmL markdown-unlit -optL "haskell toml"
    default-extensions:
        QuasiQuotes
        DerivingVia
    other-modules:
        QuoteStr
    hs-source-dirs:
        .
        test
    build-depends:
        base,
        toml-parser,
        hspec           ^>= {2.10, 2.11},
        template-haskell ^>= {2.16, 2.17, 2.18, 2.19, 2.20, 2.21},
    build-tool-depends:
        markdown-unlit:markdown-unlit ^>= {0.5.1, 0.6.0},

executable toml-benchmarker
    buildable: False
    main-is: benchmarker.hs
    default-language: Haskell2010
    build-depends: base, toml-parser, time
    hs-source-dirs: benchmarker