{- | It's important that the content is generated by functions (with dummy arguments) which are also inlined. Otherwise GHC buffers their content and runs into heap exhaustion. -} module Main where import qualified Network.Shed.Httpd as HTTP {-# INLINE items #-} items :: HTTP.Request -> [String] items (HTTP.Request{}) = map show $ iterate ((1::Integer)+) 0 {-# INLINE text #-} text :: HTTP.Request -> String text r = concat $ "" : "
" : "