Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- runServerWithWebSocketHotReload :: forall r m. (Show r, MonadIO m, MonadUnliftIO m, MonadLoggerIO m, Eq r, IsRoute r, EmaStaticSite r) => Host -> Maybe Port -> LVar (RouteModel r) -> m ()
- emaErrorHtmlResponse :: Text -> LByteString
- mkHtmlErrorMsg :: Text -> LByteString
- pathInfoFromWsMsg :: Text -> [Text]
- decodeRouteNothingMsg :: Text
- data BadRouteEncoding r = BadRouteEncoding {
- _bre_urlFilePath :: FilePath
- _bre_decodedRoute :: r
- _bre_checkLog :: [(FilePath, Text)]
- badRouteEncodingMsg :: Show r => BadRouteEncoding r -> Text
- wsClientHtml :: ByteString
- wsClientJSShim :: Text
- wsClientJS :: LByteString
Documentation
runServerWithWebSocketHotReload :: forall r m. (Show r, MonadIO m, MonadUnliftIO m, MonadLoggerIO m, Eq r, IsRoute r, EmaStaticSite r) => Host -> Maybe Port -> LVar (RouteModel r) -> m () Source #
emaErrorHtmlResponse :: Text -> LByteString Source #
A basic error response for displaying in the browser
mkHtmlErrorMsg :: Text -> LByteString Source #
pathInfoFromWsMsg :: Text -> [Text] Source #
Return the equivalent of WAI's pathInfo
, from the raw path string
(`document.location.pathname`) the browser sends us.
data BadRouteEncoding r Source #
BadRouteEncoding | |
|
Instances
Show r => Show (BadRouteEncoding r) Source # | |
Defined in Ema.Server showsPrec :: Int -> BadRouteEncoding r -> ShowS # show :: BadRouteEncoding r -> String # showList :: [BadRouteEncoding r] -> ShowS # |
badRouteEncodingMsg :: Show r => BadRouteEncoding r -> Text Source #