Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data StaticRoute (baseDir :: Symbol)
- data Model = Model {}
- staticRouteUrl :: forall s baseDir. (IsString s, HasCallStack) => Prism' FilePath (StaticRoute baseDir) -> RouteModel (StaticRoute baseDir) -> FilePath -> s
Documentation
data StaticRoute (baseDir :: Symbol) Source #
Route to a static file under baseDir
.
Instances
Instances
Generic Model Source # | |
Show Model Source # | |
Eq Model Source # | |
type Rep Model Source # | |
Defined in Ema.Route.Lib.Extra.StaticRoute type Rep Model = D1 ('MetaData "Model" "Ema.Route.Lib.Extra.StaticRoute" "ema-0.8.2.0-Fz4pnf0y9eAKxY7UdOyPdm" 'False) (C1 ('MetaCons "Model" 'PrefixI 'True) (S1 ('MetaSel ('Just "modelCliAction") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Some Action)) :*: S1 ('MetaSel ('Just "modelFiles") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map FilePath UTCTime)))) |
Helpers
staticRouteUrl :: forall s baseDir. (IsString s, HasCallStack) => Prism' FilePath (StaticRoute baseDir) -> RouteModel (StaticRoute baseDir) -> FilePath -> s Source #
Like routeUrl
, but looks up the value and appends it to URL in live-server (for force-reload in browser)