aboutsummaryrefslogtreecommitdiff
path: root/tracktrain.cabal
blob: d1acb1ceae109936c0a4566869348a2505507426 (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
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.15.1.0
                    , bytestring >= 0.10.10.0
                    , fmt >= 0.6.3.0
                    , time 
                    , aeson
                    , tracktrain
                    , wai-extra
                    , warp
                    , data-default-class >= 0.1.2
                    , persistent-postgresql
                    , monad-logger
                    , gtfs
                    , protocol-buffers
                    , conferer
                    , conferer-aeson
                    , conferer-yaml
                    , directory
                    , extra
    hs-source-dirs:   app
    default-language: Haskell2010
    default-extensions: OverloadedStrings
                      , ScopedTypeVariables


library
    build-depends:    base ^>=4.15.1.0
                    , gtfs
                    , protocol-buffers
                    , zip-archive
                    , cassava >= 0.5.2.0
                    , bytestring >= 0.10.10.0
                    , 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 <= 2.6.0
                    , blaze-html
                    , blaze-markup
                    , timezone-olson
                    , timezone-series
                    , conferer
                    , conferer-warp
                    , prometheus-client
                    , prometheus-metrics-ghc
                    , exceptions
    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
    build-depends: base ^>=4.15.1.0
                 , protocol-buffers
                 , protocol-buffers-descriptor
                 , servant
                 , servant-server
                 , http-media
                 , either
                 , swagger2
    default-language: Haskell2010
    hs-source-dirs: gtfs
    exposed-modules: GTFS.Realtime
                   , GTFS.Realtime.Alert
                   , GTFS.Realtime.Alert.Cause
                   , GTFS.Realtime.Alert.Effect
                   , GTFS.Realtime.Alert.SeverityLevel
                   , GTFS.Realtime.EntitySelector
                   , GTFS.Realtime.FeedEntity
                   , GTFS.Realtime.FeedHeader
                   , GTFS.Realtime.FeedHeader.Incrementality
                   , GTFS.Realtime.FeedMessage
                   , GTFS.Realtime.Position
                   , GTFS.Realtime.Shape
                   , GTFS.Realtime.TimeRange
                   , GTFS.Realtime.TranslatedImage
                   , GTFS.Realtime.TranslatedImage.LocalizedImage
                   , GTFS.Realtime.TranslatedString
                   , GTFS.Realtime.TranslatedString.Translation
                   , GTFS.Realtime.TripDescriptor
                   , GTFS.Realtime.TripDescriptor.ScheduleRelationship
                   , GTFS.Realtime.TripUpdate
                   , GTFS.Realtime.TripUpdate.StopTimeEvent
                   , GTFS.Realtime.TripUpdate.StopTimeUpdate
                   , GTFS.Realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship
                   , GTFS.Realtime.TripUpdate.StopTimeUpdate.StopTimeProperties
                   , GTFS.Realtime.TripUpdate.TripProperties
                   , GTFS.Realtime.VehicleDescriptor
                   , GTFS.Realtime.VehiclePosition
                   , GTFS.Realtime.VehiclePosition.CarriageDetails
                   , GTFS.Realtime.VehiclePosition.CongestionLevel
                   , GTFS.Realtime.VehiclePosition.OccupancyStatus
                   , GTFS.Realtime.VehiclePosition.VehicleStopStatus
                   , Servant.GTFS.Realtime