aboutsummaryrefslogtreecommitdiff
path: root/tracktrain.cabal
blob: 45ba2465d1dc900d45156b3a0af31bb1f81ce740 (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
cabal-version:      2.4
name:               tracktrain
version:            0.0.2.0
synopsis:           tracktrain tracks trains on their traintracks
description:        A passenger information system backend for the Ilztalbahn
license:            EUPL-1.2
author:             stuebinm
maintainer:         stuebinm@disroot.org

-- A copyright notice.
-- copyright:

extra-source-files: CHANGELOG.md

executable tracktrain
    main-is:          Main.hs
    ghc-options: -threaded -rtsopts
    build-depends:    base
                    , 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
                    , filepath >= 1.4.100
    hs-source-dirs:   app
    default-language: GHC2021
    default-extensions: OverloadedStrings
                      , ScopedTypeVariables


library
    build-depends:    base
                    , 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
                    , filepath >= 1.4.100
                    , monad-control
    hs-source-dirs:   lib
    exposed-modules: GTFS
                   , Server
                   , Server.GTFS_RT
                   , Server.Frontend
                   , PersistOrphans
                   , Persist
                   , Extrapolation
                   , API
                   , Config
    other-modules: Server.Util
                 , Yesod.Auth.Uffd
                 , Yesod.Orphans
                 , MultiLangText
                 , Server.Base
                 , Server.Ingest
                 , Server.Subscribe
                 , Server.Frontend.Routes
                 , Server.Frontend.Tickets
                 , Server.Frontend.OnboardUnit
                 , Server.Frontend.Gtfs
                 , Server.Frontend.SpaceTime
                 , Server.Frontend.Ticker
    default-language: GHC2021
    default-extensions: OverloadedStrings
                      , ScopedTypeVariables
                      , ViewPatterns

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