summaryrefslogtreecommitdiff
path: root/package.yaml
blob: 9ff8ffb26aa2625c9f7c7c2ea5dcff3548b6d929 (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
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
name: zf
version: 0.3.0.0
license: CC0-1.0
license-file: license.md
github: adelon/zf

extra-source-files:
    - license.md
    - readme.md

dependencies:
    - base
    - binary
    - bound
    - charset
    - containers
    - deriving-compat # for bound
    - directory
    - dlist
    - Earley
    - filepath
    - hashable >= 1.3.1.0 # 1.3.1.0 provides Hashable1 for NonEmpty
    - megaparsec
    - monad-logger
    - mtl
    - optparse-applicative
    - parser-combinators
    - pretty-simple
    - prettyprinter
    - process-extras
    - regex-applicative
    - regex-applicative-text
    - tasty
    - tasty-golden
    - tasty-hunit
    - text
    - text-builder
    - time
    - transformers
    - unliftio
    - unordered-containers

default-extensions:
    - ApplicativeDo
    - ImportQualifiedPost
    - BlockArguments
    - DeriveFunctor
    - DeriveGeneric
    - FlexibleContexts
    - FlexibleInstances
    - GADTs
    - GeneralizedNewtypeDeriving
    - InstanceSigs
    - LambdaCase
    - NoImplicitPrelude
    - OverloadedStrings
    - PartialTypeSignatures
    - PatternSynonyms
    - ScopedTypeVariables
    - TypeFamilies
    - TypeOperators


# Each part gets it own GHC options, because otherwise all
# external libraries are compiled with our picky settings,
# resulting in an unfriendly wall of warnings.

library:
    source-dirs: source/
    ghc-options:
        # Warnings
        - -Wall
        - -Wcompat
        - -Wincomplete-uni-patterns
        - -Wincomplete-record-updates
        - -Wredundant-constraints
        - -fno-warn-unused-do-bind
        # Cleaning up GHC's error messages
        - -freverse-errors
        - -fhide-source-paths

executables:
    zf:
        main: cli/Main.hs
        dependencies:
            - zf
        ghc-options:
            - -rtsopts
            - -threaded
            - -with-rtsopts=-N
            # Warnings
            - -Wall
            - -Wcompat
            - -Wincomplete-uni-patterns
            - -Wincomplete-record-updates
            - -Wredundant-constraints
            - -fno-warn-unused-do-bind
            # Cleaning up GHC's error messages
            - -freverse-errors
            - -fhide-source-paths
        # Workaround: supresses warning about
        # 'Multiple files use the same module name'.
        when:
        - condition: false
          other-modules: Paths_zf

tests:
    zf-test:
        main: Main.hs
        source-dirs: test/
        dependencies:
            - zf
        ghc-options:
            # Warnings
            - -Wall
            - -Wcompat
            - -Wincomplete-uni-patterns
            - -Wincomplete-record-updates
            - -Wredundant-constraints
            - -fno-warn-unused-do-bind
            # Cleaning up GHC's error messages
            - -freverse-errors
            - -fhide-source-paths