Skip to content

Commit

Permalink
fix bench
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Zocca committed Dec 29, 2023
1 parent 06de9a7 commit f646638
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bench/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
module Main (main) where

import Control.Monad
import Control.Monad.Trans.Resource (InternalState, withInternalState, runResourceT)
import Data.Functor.Identity
import Lucid.Base
import Lucid.Html5
Expand All @@ -20,14 +19,13 @@ import Weigh

main :: IO ()
main = do
runResourceT $ withInternalState $ \istate ->
mainWith $ do
setColumns [Case,Allocated,GCs,Live,Check,Max,MaxOS]
setFormat Markdown
io "ScottyM Strict" BL.putStr
(SS.evalState (runS $ renderBST htmlScotty) (defaultScottyState istate))
(SS.evalState (runS $ renderBST htmlScotty) (defaultScottyState))
io "ScottyM Lazy" BL.putStr
(SL.evalState (runScottyLazy $ renderBST htmlScottyLazy) (defaultScottyState istate))
(SL.evalState (runScottyLazy $ renderBST htmlScottyLazy) (defaultScottyState))
io "Identity" BL.putStr
(runIdentity $ renderBST htmlIdentity)

Expand Down

0 comments on commit f646638

Please sign in to comment.