-
Notifications
You must be signed in to change notification settings - Fork 9
/
hackernews.cabal
101 lines (97 loc) · 2.64 KB
/
hackernews.cabal
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
name: hackernews
version: 1.4.0.0
description: API for news.ycombinator.com
license: MIT
synopsis: API for Hacker News
license-file: LICENSE
author: David Johnson
maintainer: djohnson.m@gmail.com
category: Web
build-type: Simple
cabal-version: >=1.10
extra-source-files:
jsbits/options.js
README.md
LICENSE
ghc-examples/Example.hs
ghcjs-examples/Example.hs
ghc-tests/Test.hs
ghcjs-tests/Test.hs
executable hackernews-example
main-is: Example.hs
default-language: Haskell2010
if impl (ghcjs)
build-depends:
base
, hackernews
, ghcjs-base
hs-source-dirs: ghcjs-examples
else
build-depends:
base
, hackernews
, http-client-tls
, http-client
hs-source-dirs: ghc-examples
executable ghcjs-tests
main-is: Test.hs
if impl(ghcjs)
hs-source-dirs: ghcjs-tests
build-depends: base
, hackernews
, ghcjs-base
, hspec
, hspec-core
, quickcheck-instances
, aeson
, QuickCheck
else
buildable: False
default-language: Haskell2010
library
exposed-modules: Web.HackerNews
, Web.HackerNews.Types
hs-source-dirs: src
build-depends:
servant >= 0.9 && < 0.13
, QuickCheck
, quickcheck-instances
if impl(ghcjs)
ghcjs-options: -Wall
hs-source-dirs: ghcjs-src
build-depends: aeson
, attoparsec == 0.13.*
, base < 5
, ghcjs-base
, string-conversions == 0.4.*
, text == 1.2.*
else
ghc-options: -Wall
hs-source-dirs: ghc-src
build-depends: aeson
, base < 5
, servant-client >= 0.9 && < 0.13
, http-client == 0.5.*
, string-conversions == 0.4.*
, http-types >= 0.9
, text == 1.2.*
default-language: Haskell2010
Test-Suite ghc-tests
type: exitcode-stdio-1.0
if impl(ghcjs)
buildable: False
default-language: Haskell2010
main-is: Test.hs
ghc-options: -rtsopts -threaded -Wall
hs-source-dirs: ghc-tests
build-depends: aeson
, base
, hackernews
, hspec
, http-client-tls
, http-client
, QuickCheck
, quickcheck-instances
source-repository head
type: git
location: https://github.com/dmjio/hackernews