File: tldr.cabal

package info (click to toggle)
haskell-tldr 0.9.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 172 kB
  • sloc: haskell: 484; makefile: 11; sh: 10
file content (100 lines) | stat: -rw-r--r-- 2,209 bytes parent folder | download
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
cabal-version: 1.12

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

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
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
      Tldr.App
      Tldr.App.Constant
      Tldr.App.Handler
      Tldr.Parser
      Tldr.Types
  other-modules:
      Paths_tldr
  hs-source-dirs:
      src
  ghc-options: -Wall -O2
  build-depends:
      ansi-terminal
    , attoparsec
    , base >=4.7 && <5
    , bytestring
    , cmark
    , containers
    , directory
    , filepath
    , http-conduit
    , optparse-applicative
    , semigroups
    , text
    , time
    , zip-archive
  default-language: Haskell2010

executable tldr-hs
  main-is: Main.hs
  other-modules:
      Paths_tldr
  hs-source-dirs:
      app
  ghc-options: -Wall -O2
  build-depends:
      base
    , tldr
  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: -Wall -O2 -threaded -rtsopts
  build-depends:
      base
    , tasty
    , tasty-golden
    , tldr
  default-language: Haskell2010