Safe Haskell | None |
---|---|
Language | Haskell98 |
- data PureScriptSite
- class Yesod master => YesodPureScript master
- data YesodPureScriptOptions = YesodPureScriptOptions {
- ypsoMode :: Mode
- ypsoSourceDirectories :: [Text]
- ypsoCompileOptions :: [CompileOptions]
- ypsoErrorDivId :: Maybe Text
- ypsoVerboseErrors :: Bool
- createYesodPureScriptSite :: YesodPureScriptOptions -> IO PureScriptSite
- defaultYesodPureScriptOptions :: YesodPureScriptOptions
- getPureScriptRoute :: [Text] -> Route PureScriptSite
Documentation
data PureScriptSite Source
Yesod sub site for PureScript.
RenderRoute PureScriptSite | |
ParseRoute PureScriptSite | |
RouteAttrs PureScriptSite | |
YesodPureScript master => YesodSubDispatch PureScriptSite (HandlerT master IO) | All things that are "YesodPureScript master", are also this other thing, because they nobody knows, because TH. |
Eq (Route PureScriptSite) | |
Read (Route PureScriptSite) | |
Show (Route PureScriptSite) | |
data Route PureScriptSite = PureScriptCompiledR Texts |
class Yesod master => YesodPureScript master Source
Things that are Yesod master can also be YesodPureScript master.
data YesodPureScriptOptions Source
Options for Yesod PureScript.
YesodPureScriptOptions | |
|
Default YesodPureScriptOptions | YesodPureScriptOptions thing is also Data.Default.Default, because it has "def", which is defaultYesodPureScriptOptions. |
createYesodPureScriptSite :: YesodPureScriptOptions -> IO PureScriptSite Source
Create pure script site. Initialises MVar of compiled modules to empty map.
defaultYesodPureScriptOptions :: YesodPureScriptOptions Source
Default options for YesodPureScript. Needed when creating PureScriptSite. Please don't create YesodPureScriptOptions by calling constructor directly, so I can add more options without breaking your code.
getPureScriptRoute :: [Text] -> Route PureScriptSite Source
For convenience: turns a path as list into a route.