Rendering a heist template returns nothing
问题 import Data.String.Conversions import Data.Maybe (isJust) import qualified Heist import qualified Heist.Interpreted as I import qualified Heist.Compiled as HeistCom import Heist.Internal.Types import qualified Text.XmlHtml as X import Data.List (sortBy) import Data.Map.Syntax import Data.ByteString.Builder (toLazyByteString) renderTemplate :: String -> (HeistState IO -> HeistState IO) -> ActionM () renderTemplate fileName hsBinding = do let emptyI = return () :: MapSyntax Text (I.Splice IO)