summaryrefslogtreecommitdiff
path: root/package.yaml
blob: f0b334487a33f1f78821a3c8aa7a73ccb7581ea2 (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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
name: felix
version: 0.3.0.0
license: CC0-1.0
license-file: license.md
github: adelon/felix

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

data-files:
    - data/felix-prelude.tex

dependencies:
    - base
    - binary
    - bound
    - containers
    - deriving-compat # for bound
    - deepseq
    - directory
    - bytestring
    - crypton
    - Earley
    - filepath
    - hashable >= 1.3.1.0 # 1.3.1.0 provides Hashable1 for NonEmpty
    - hedgehog
    - lucid2
    - memory
    - megaparsec
    - monad-logger
    - mtl
    - optparse-applicative
    - parser-combinators
    - pretty-simple
    - prettyprinter
    - process
    - regex-applicative
    - sqlite-simple
    - stm
    - tasty
    - tasty-golden
    - tasty-hedgehog
    - tasty-hunit
    - text >= 2.0.2
    - text-builder >= 1.0.0.4 # force new API
    - temporary
    - time
    - transformers
    - unliftio
    - unix
    - unordered-containers
    - vector

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:
            - felix
        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_felix

tests:
    felix-test:
        main: Main.hs
        source-dirs: test/
        dependencies:
            - felix
        build-tools:
            - felix: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