Skip to content

Commit

Permalink
Use new Prerender
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Apr 6, 2022
1 parent b0de169 commit 05405e9
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion neuron.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.4
name: neuron
version: 1.9.35.3
version: 1.9.36.0
license: AGPL-3.0-only
copyright: 2020 Sridhar Ratnakumar
maintainer: srid@srid.ca
Expand Down
2 changes: 1 addition & 1 deletion src/Neuron/Cache/Type.hs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ instance FromJSON NeuronCache where

reflexDomGetCache ::
( DomBuilder t m,
Prerender js t m,
Prerender t m,
TriggerEvent t m,
PerformEvent t m,
PostBuild t m,
Expand Down
2 changes: 1 addition & 1 deletion src/Neuron/Frontend/Impulse.hs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ treeMatches :: Tree (Maybe a, b) -> Bool
treeMatches (Node (mm, _) _) = isJust mm

renderImpulse ::
(DomBuilder t m, PostBuild t m, MonadHold t m, MonadFix m, Prerender js t m) =>
(DomBuilder t m, PostBuild t m, MonadHold t m, MonadFix m, Prerender t m) =>
Dynamic t (LoadableData (SiteData, ImpulseData)) ->
NeuronWebT t m ()
renderImpulse dataLDyn = do
Expand Down
4 changes: 2 additions & 2 deletions src/Neuron/Frontend/Static/Html.hs
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ import Relude

-- | Render the given route
renderRoutePage ::
forall t m js a.
forall t m a.
( DomBuilder t m,
RawBuilder m,
MonadHold t m,
PostBuild t m,
MonadFix m,
Prerender js t m,
Prerender t m,
PerformEvent t m,
TriggerEvent t m
) =>
Expand Down
8 changes: 4 additions & 4 deletions src/Neuron/Frontend/View.hs
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ bodyTemplate neuronVersionM w = do
renderBrandFooter neuronVersionM

renderRouteImpulse ::
forall t m js.
(DomBuilder t m, PostBuild t m, MonadHold t m, MonadFix m, Prerender js t m) =>
forall t m.
(DomBuilder t m, PostBuild t m, MonadHold t m, MonadFix m, Prerender t m) =>
Dynamic t (LoadableData (SiteData, ImpulseData)) ->
NeuronWebT t m ()
renderRouteImpulse dataLDyn = do
Expand All @@ -83,13 +83,13 @@ renderRouteImpulse dataLDyn = do
Impulse.renderImpulse dataLDyn

renderRouteZettel ::
forall t m js.
forall t m.
( DomBuilder t m,
RawBuilder m,
PostBuild t m,
MonadHold t m,
MonadFix m,
Prerender js t m
Prerender t m
) =>
Dynamic t (LoadableData (SiteData, ZettelData)) ->
NeuronWebT t m ()
Expand Down
2 changes: 1 addition & 1 deletion src/Neuron/Frontend/Zettel/View.hs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ renderZettel ::
PostBuild t m,
MonadHold t m,
MonadFix m,
Prerender js t m
Prerender t m
) =>
SiteData ->
ZettelData ->
Expand Down
6 changes: 3 additions & 3 deletions src/Neuron/Plugin.hs
Original file line number Diff line number Diff line change
Expand Up @@ -230,16 +230,16 @@ stripSurroundingContext =

-- | Render a zettel Pandoc content given its zettel data.
elZettel ::
(DomBuilder t m, RawBuilder m, PostBuild t m, Prerender js t m) =>
(DomBuilder t m, RawBuilder m, PostBuild t m, Prerender t m) =>
ZettelData ->
Pandoc ->
NeuronWebT t m ()
elZettel zData =
elPandoc (mkReflexDomPandocConfig zData)

mkReflexDomPandocConfig ::
forall js t m.
(DomBuilder t m, RawBuilder m, PostBuild t m, Prerender js t m) =>
forall t m.
(DomBuilder t m, RawBuilder m, PostBuild t m, Prerender t m) =>
ZettelData ->
Config t (NeuronWebT t m) ()
mkReflexDomPandocConfig x =
Expand Down

0 comments on commit 05405e9

Please sign in to comment.