Fix Haddocks (#277)
This commit is contained in:
parent
8a3024113f
commit
4c21c092ab
@ -30,6 +30,7 @@ module Yesod.Core
|
|||||||
-- * JS loaders
|
-- * JS loaders
|
||||||
, loadJsYepnope
|
, loadJsYepnope
|
||||||
, ScriptLoadPosition (..)
|
, ScriptLoadPosition (..)
|
||||||
|
, BottomOfHeadAsync
|
||||||
-- * Misc
|
-- * Misc
|
||||||
, yesodVersion
|
, yesodVersion
|
||||||
, yesodRender
|
, yesodRender
|
||||||
|
|||||||
@ -27,6 +27,7 @@ module Yesod.Internal.Core
|
|||||||
, messageLoggerHandler
|
, messageLoggerHandler
|
||||||
-- * jsLoader
|
-- * jsLoader
|
||||||
, ScriptLoadPosition (..)
|
, ScriptLoadPosition (..)
|
||||||
|
, BottomOfHeadAsync
|
||||||
, loadJsYepnope
|
, loadJsYepnope
|
||||||
-- * Misc
|
-- * Misc
|
||||||
, yesodVersion
|
, yesodVersion
|
||||||
@ -641,11 +642,15 @@ $case jsLoader master
|
|||||||
: attrs
|
: attrs
|
||||||
)
|
)
|
||||||
|
|
||||||
data Yesod master => ScriptLoadPosition master = BottomOfBody | BottomOfHeadBlocking | BottomOfHeadAsync (
|
data ScriptLoadPosition master
|
||||||
[Text] -- ^ urls to load asynchronously
|
= BottomOfBody
|
||||||
-> Maybe (HtmlUrl (Route master)) -- ^ widget of js to run on async completion
|
| BottomOfHeadBlocking
|
||||||
-> (HtmlUrl (Route master)) -- ^ widget to insert at the bottom of <head>
|
| BottomOfHeadAsync (BottomOfHeadAsync master)
|
||||||
)
|
|
||||||
|
type BottomOfHeadAsync master
|
||||||
|
= [Text] -- ^ urls to load asynchronously
|
||||||
|
-> Maybe (HtmlUrl (Route master)) -- ^ widget of js to run on async completion
|
||||||
|
-> (HtmlUrl (Route master)) -- ^ widget to insert at the bottom of <head>
|
||||||
|
|
||||||
left :: Either a b -> Maybe a
|
left :: Either a b -> Maybe a
|
||||||
left (Left x) = Just x
|
left (Left x) = Just x
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user