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:
parent
111d589122
commit
05d410670f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user