1
1
mirror of https://github.com/srid/ema.git synced 2024-11-29 09:25:14 +03:00

StaticRoute: derive Generic

This commit is contained in:
Sridhar Ratnakumar 2022-07-02 11:15:04 -04:00
parent 111d589122
commit 05d410670f

View File

@ -27,6 +27,7 @@ import UnliftIO (MonadUnliftIO)
-- | Route to a static file under @baseDir@.
newtype StaticRoute (baseDir :: Symbol) (a :: Type) = StaticRoute {unStaticRoute :: FilePath}
deriving newtype (Eq, Ord, Show)
deriving stock (Generic)
instance IsRoute (StaticRoute baseDir a) where
type RouteModel (StaticRoute baseDir a) = Map FilePath a