diff options
author | stuebinm | 2024-05-20 19:51:34 +0200 |
---|---|---|
committer | stuebinm | 2024-05-20 19:51:34 +0200 |
commit | ae2fdbf72745ac46116c70f8435dacd7c227225f (patch) | |
tree | f0a7056b039b35ced716156d2cd6f04798a7bde4 /lib/Server.hs | |
parent | 82355e81aa9a3fd7a38f902dc749d4835270ab21 (diff) |
use OsPath instead of FilePath in easy cases
this is still far from being supported by most libraries, but does make
it possible to remove some uses of String (though most times, there is a
conversion back to String later).
Note that using the default.nix now only works on nixpkgs-unstable for a
bit; using the newer filepath package on stable leads to broken other packages.
Diffstat (limited to 'lib/Server.hs')
-rw-r--r-- | lib/Server.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Server.hs b/lib/Server.hs index 15027b3..3fc2c5a 100644 --- a/lib/Server.hs +++ b/lib/Server.hs @@ -36,7 +36,6 @@ import Prometheus (Info (Info), exportMetricsAsText, gauge, register) import Prometheus.Metric.GHC (ghcMetrics) import Servant (Application, err401, serve, - serveDirectoryFileServer, throwError) import Servant.API ((:<|>) (..)) import Servant.Server (hoistServer) @@ -47,7 +46,8 @@ import Server.GTFS_RT (gtfsRealtimeServer) import Server.Ingest (handleTrackerRegister, handleTrainPing, handleWS) import Server.Subscribe (handleSubscribe) -import Server.Util (Service, runLogging, runService) +import Server.Util (Service, runLogging, runService, + serveDirectoryFileServer) import System.IO.Unsafe (unsafePerformIO) import Yesod (toWaiAppPlain) |