{-# OPTIONS_GHC -fno-warn-orphans #-} {-# LANGUAGE UndecidableInstances #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE TypeOperators #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE DataKinds #-} module Html.Function where import Html.Type import GHC.Exts import GHC.TypeLits import Data.Proxy import Data.Monoid hiding (Last) import qualified Data.Text as T import qualified Data.Text.Lazy as LT import qualified Data.Text.Lazy.Builder as TLB -- | Render a html document. The resulting type can be a String, -- strict Text, lazy Text, or Builder. For performance it is -- recommended to use a lazy Text or a Builder. -- -- >>> render "a" :: String -- "a" -- -- >>> render (div_ "a") :: Text -- "