summaryrefslogtreecommitdiff
path: root/bugsnag-haskell.cabal
blob: da8cad675a3ba2b42073fc1d5f220c2a98448888 (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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
cabal-version: 1.18

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

name:           bugsnag-haskell
version:        0.0.3.0
synopsis:       Bugsnag error reporter for Haskell
description:    Please see README.md
category:       Web
homepage:       https://github.com/pbrisbin/bugsnag-haskell#readme
author:         Patrick Brisbin
maintainer:     pbrisbin@gmail.com
license:        MIT
license-file:   LICENSE
build-type:     Simple
extra-source-files:
    test/fixtures/index-project/Foo.hs
extra-doc-files:
    CHANGELOG.md
    README.md

flag examples
  description: Build the examples
  manual: False
  default: False

library
  hs-source-dirs:
      src
  ghc-options: -Wall
  build-depends:
      Glob >=0.9.0
    , aeson >=1.3.0.0
    , base >=4.8.0 && <5
    , bytestring
    , case-insensitive
    , containers
    , http-client
    , http-client-tls
    , http-conduit
    , http-types
    , iproute
    , network
    , parsec
    , template-haskell
    , text
    , th-lift-instances
    , time
    , ua-parser
    , wai
  exposed-modules:
      Data.Aeson.Ext
      Network.Bugsnag
      Network.Bugsnag.App
      Network.Bugsnag.BeforeNotify
      Network.Bugsnag.Breadcrumb
      Network.Bugsnag.CodeIndex
      Network.Bugsnag.Device
      Network.Bugsnag.Event
      Network.Bugsnag.Exception
      Network.Bugsnag.Exception.Parse
      Network.Bugsnag.Notifier
      Network.Bugsnag.Notify
      Network.Bugsnag.ReleaseStage
      Network.Bugsnag.Report
      Network.Bugsnag.Reporter
      Network.Bugsnag.Request
      Network.Bugsnag.Session
      Network.Bugsnag.Settings
      Network.Bugsnag.Severity
      Network.Bugsnag.StackFrame
      Network.Bugsnag.Thread
      Network.Bugsnag.User
  other-modules:
      Paths_bugsnag_haskell
  default-language: Haskell2010

executable example-cli
  main-is: Main.hs
  hs-source-dirs:
      examples/cli
  ghc-options: -Wall
  build-depends:
      base >=4.8.0 && <5
    , bugsnag-haskell
  if !(flag(examples))
    buildable: False
  other-modules:
      Paths_bugsnag_haskell
  default-language: Haskell2010

executable example-simple
  main-is: Main.hs
  hs-source-dirs:
      examples/simple
  ghc-options: -Wall
  build-depends:
      base >=4.8.0 && <5
    , bugsnag-haskell
  if !(flag(examples))
    buildable: False
  other-modules:
      Paths_bugsnag_haskell
  default-language: Haskell2010

executable example-warp
  main-is: Main.hs
  hs-source-dirs:
      examples/warp
  ghc-options: -Wall
  build-depends:
      base >=4.8.0 && <5
    , bugsnag-haskell
    , wai
    , warp
  if !(flag(examples))
    buildable: False
  other-modules:
      Paths_bugsnag_haskell
  default-language: Haskell2010

executable example-yesod
  main-is: Main.hs
  hs-source-dirs:
      examples/yesod
  ghc-options: -Wall
  build-depends:
      base >=4.8.0 && <5
    , bugsnag-haskell
    , exceptions
    , unliftio
    , wai
    , warp
    , yesod-core
  if !(flag(examples))
    buildable: False
  other-modules:
      Paths_bugsnag_haskell
  default-language: Haskell2010

test-suite doctest
  type: exitcode-stdio-1.0
  main-is: DocTest.hs
  hs-source-dirs:
      ./.
  ghc-options: -Wall -Wall
  build-depends:
      base >=4.8.0 && <5
    , doctest
  other-modules:
      Paths_bugsnag_haskell
  default-language: Haskell2010

test-suite spec
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  hs-source-dirs:
      test
  ghc-options: -Wall
  build-depends:
      aeson
    , aeson-qq
    , base >=4.8.0 && <5
    , bugsnag-haskell
    , hspec
    , text
    , time
    , unliftio
  other-modules:
      Network.Bugsnag.CodeIndexSpec
      Network.Bugsnag.ReportSpec
      Network.BugsnagSpec
      Paths_bugsnag_haskell
  default-language: Haskell2010