-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathpackage.yaml
75 lines (69 loc) · 1.34 KB
/
package.yaml
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
name: tldr
version: '0.9.2'
synopsis: Haskell tldr client
description: |
Haskell tldr client with support for viewing tldr pages. Has offline
cache for accessing pages. Visit https://tldr.sh for more details.
category: Web, CLI
author: Sibi Prabakaran
maintainer: sibi@psibi.in
copyright: 2017 Sibi Prabakaran
license: BSD3
github: psibi/tldr-hs
extra-source-files:
- README.md
- CHANGELOG.md
- test/data/*.golden
- test/data/*.md
flags:
static:
description: Statically link executables.
manual: true
default: false
library:
source-dirs: src
dependencies:
- attoparsec
- base >=4.7 && <5
- cmark
- text
- bytestring
- ansi-terminal
- optparse-applicative
- directory
- filepath
- semigroups
- containers
- http-conduit
- zip-archive
- time
ghc-options:
- -Wall
- -O2
executables:
tldr:
main: Main.hs
source-dirs: app
when:
- condition: flag(static) && os(linux)
then:
ld-options: -static
ghc-options: "-rtsopts -threaded -optc-Os -optl=-pthread -optl=-static -fPIC"
else:
ghc-options: "-rtsopts -threaded"
dependencies:
- base
- tldr
tests:
tldr-test:
main: Spec.hs
source-dirs: test
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
dependencies:
- base
- tldr
- tasty
- tasty-golden