summaryrefslogtreecommitdiff
path: root/docrecords.cabal
blob: 30bbac2a79f214ccd59743fa250a380ea597beb8 (plain)
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
cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.32.0.
--
-- see: https://github.com/sol/hpack
--
-- hash: b0bb83f0bd44ebb20879007dea8da366c5a1668a9a5d5d064664ed64ee55675d

name:           docrecords
version:        0.1.0.0
synopsis:       Vinyl-based records with hierarchical field names, default values and documentation
description:    Implements the DocRec type, which is a record (in the vinyl sense) where each
                field has an optional value and a docstring. The names of the fields are
                type-level lists of Symbols, acting as paths. This makes docrecords
                hierarchical. Addionally, we provide the code to read docrecords from JSON
                files and derive CLI parsers to override the records read from
                files. docrecords is part of the porcupine ecosystem. See the README at
                <https://github.com/tweag/porcupine#README.md>
category:       Data, Records, JSON, CLI, Options, Parsing
homepage:       https://github.com/tweag/porcupine#readme
bug-reports:    https://github.com/tweag/porcupine/issues
maintainer:     Yves Parès <yves.pares@tweag.io>
copyright:      2018 EURL Tweag, NovaDiscovery
license:        MIT
license-file:   LICENSE
build-type:     Simple

source-repository head
  type: git
  location: https://github.com/tweag/porcupine

library
  exposed-modules:
      Data.DocRecord
      Data.DocRecord.OptParse
  other-modules:
      Paths_docrecords
  hs-source-dirs:
      src
  ghc-options: -Wall
  build-depends:
      aeson
    , base >=4.10 && <5
    , data-default
    , lens
    , optparse-applicative
    , text
    , unordered-containers
    , vinyl >=0.11
    , yaml
  default-language: Haskell2010

test-suite doctest
  type: exitcode-stdio-1.0
  main-is: DocTest.hs
  other-modules:
      Paths_docrecords
  hs-source-dirs:
      test
  ghc-options: -Wall
  build-depends:
      aeson
    , base >=4.10 && <5
    , data-default
    , doctest
    , lens
    , optparse-applicative
    , text
    , unordered-containers
    , vinyl >=0.11
    , yaml
  default-language: Haskell2010