aboutsummaryrefslogtreecommitdiff
path: root/tracktrain.cabal
blob: e763f6d356c4d3da581d8594753b2d2498fe4532 (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
cabal-version:      2.4
name:               tracktrain
version:            0.1.0.0

-- A short (one-line) description of the package.
synopsis: tracktrain tracks trains on their traintracks

-- A longer description of the package.
-- description:

-- A URL where users can report bugs.
-- bug-reports:

-- The license under which the package is released.
-- license:
author:             stuebinm
maintainer:         stuebinm@disroot.org

-- A copyright notice.
-- copyright:
-- category:
extra-source-files: CHANGELOG.md

executable tracktrain
    main-is:          Main.hs
    ghc-options: -threaded -rtsopts
    build-depends:    base ^>=4.17
                    , bytestring ^>= 0.11
                    , fmt >= 0.6.3.0
                    , time 
                    , aeson
                    , tracktrain
                    , wai-extra
                    , warp
                    , data-default-class >= 0.1.2
                    , persistent-postgresql
                    , monad-logger
                    , gtfs-realtime
                    , conferer
                    , conferer-aeson
                    , conferer-yaml
                    , directory
                    , extra
                    , proto-lens
    hs-source-dirs:   app
    default-language: Haskell2010
    default-extensions: OverloadedStrings
                      , ScopedTypeVariables


library
    build-depends:    base ^>=4.17
                    , gtfs-realtime
                    , zip-archive
                    , cassava >= 0.5.2.0
                    , bytestring ^>= 0.11
                    , uri-bytestring
                    , vector >= 0.12.3.1
                    , regex-tdfa
                    , text
                    , fmt >= 0.6.3.0
                    , time 
                    , aeson
                    , servant
                    , servant-server
                    , warp
                    , uuid >= 1.3
                    , stm
                    , containers
                    , swagger2
                    , servant-swagger
                    , servant-docs
                    , servant-websockets
                    , insert-ordered-containers
                    , shakespeare
                    , websockets
                    , lens
                    , persistent
                    , persistent-postgresql
                    , monad-logger
                    , mtl
                    , unliftio-core
                    , conduit
                    , path-pieces
                    , http-api-data
                    , either
                    , resource-pool
                    , transformers
                    , extra
                    , vector-algorithms
                    , yesod
                    , yesod-form
                    , yesod-auth
                    , yesod-auth-oauth2
                    , yesod-core
                    , hoauth2
                    , blaze-html
                    , blaze-markup
                    , timezone-olson
                    , timezone-series
                    , conferer
                    , conferer-warp
                    , prometheus-client
                    , prometheus-metrics-ghc
                    , exceptions
                    , proto-lens
                    , http-media
    hs-source-dirs:   lib
    exposed-modules: GTFS
                   , Server
                   , Server.GTFS_RT
                   , Server.ControlRoom
                   , PersistOrphans
                   , Persist
                   , Extrapolation
                   , API
                   , Config
    other-modules: Server.Util
                 , Yesod.Auth.Uffd
                 , Yesod.Orphans
    default-language: Haskell2010
    default-extensions: OverloadedStrings
                      , ScopedTypeVariables
                      , ViewPatterns

library gtfs-realtime
    build-depends: base ^>=4.17
    		 , proto-lens-runtime
    default-language: Haskell2010
    hs-source-dirs: gtfs-realtime
    exposed-modules: Proto.GtfsRealtime
                   , Proto.GtfsRealtime_Fields