summaryrefslogtreecommitdiff
path: root/tldr.cabal
blob: fd420d92b7e5bd21a3046d044ba12899d3a65bcd (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
cabal-version: 1.12

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

name:           tldr
version:        0.7.1
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
homepage:       https://github.com/psibi/tldr-hs#readme
bug-reports:    https://github.com/psibi/tldr-hs/issues
author:         Sibi Prabakaran
maintainer:     sibi@psibi.in
copyright:      2017 Sibi Prabakaran
license:        BSD3
license-file:   LICENSE
build-type:     Simple
extra-source-files:
    README.md
    CHANGELOG.md
    test/data/grep.golden
    test/data/ls.golden
    test/data/ps.golden
    test/data/grep.md
    test/data/ls.md
    test/data/ps.md

source-repository head
  type: git
  location: https://github.com/psibi/tldr-hs

flag static
  description: Statically link executables.
  manual: True
  default: False

library
  exposed-modules:
      Tldr
  other-modules:
      Paths_tldr
  hs-source-dirs:
      src
  build-depends:
      ansi-terminal
    , base >=4.7 && <5
    , bytestring
    , cmark
    , text
  default-language: Haskell2010

executable tldr
  main-is: Main.hs
  other-modules:
      Paths_tldr
  hs-source-dirs:
      app
  build-depends:
      base
    , containers
    , directory
    , filepath
    , optparse-applicative
    , semigroups
    , tldr
    , typed-process
  if flag(static) && os(linux)
    ghc-options: -rtsopts -threaded -optc-Os -optl=-pthread -optl=-static -fPIC
    ld-options: -static
  else
    ghc-options: -rtsopts -threaded
  default-language: Haskell2010

test-suite tldr-test
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  other-modules:
      Paths_tldr
  hs-source-dirs:
      test
  ghc-options: -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      base
    , tasty
    , tasty-golden
    , tldr
  default-language: Haskell2010