1 -- | BigTable benchmark implemented using Hamlet.
3 {-# LANGUAGE QuasiQuotes #-}
8 import Text.Hamlet.Monad
9 import Numeric (showInt)
10 import Data.Text (Text)
11 import qualified Data.Text as T
12 import Data.Maybe (fromJust)
15 [ bench "bigTable" $ nf bigTable bigTableData
21 bigTableData :: [[Int]]
22 bigTableData = replicate rows [1..10]
23 {-# NOINLINE bigTableData #-}
25 bigTable rows = fromJust $ hamletToText undefined [$hamlet|
33 showInt' i = Encoded $ T.pack $ showInt i ""