reexport stuff from BuilderQQ

This commit is contained in:
Rhiannon Morris 2020-07-19 17:32:27 +02:00
parent 858e1c62ce
commit cbff8f1a53
5 changed files with 4 additions and 5 deletions

View file

@ -1,5 +1,5 @@
{-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE TemplateHaskell #-}
module BuilderQQ (b) where module BuilderQQ (b, Builder, toLazyText, fromText, fromString, fromChar) where
import Data.Char (isLower, isSpace, isDigit, isAlphaNum) import Data.Char (isLower, isSpace, isDigit, isAlphaNum)
import Language.Haskell.TH import Language.Haskell.TH
@ -176,3 +176,6 @@ pattern c :. t <- (Text.uncons -> Just (c, t))
where c :. t = Text.cons c t where c :. t = Text.cons c t
{-# COMPLETE NilT, (:.) :: Text #-} {-# COMPLETE NilT, (:.) :: Text #-}
fromChar :: Char -> Builder
fromChar = singleton

View file

@ -9,7 +9,6 @@ import Info hiding (Text)
import Data.Maybe (fromMaybe) import Data.Maybe (fromMaybe)
import Data.Text.Lazy (Text) import Data.Text.Lazy (Text)
import Data.Text.Lazy.Builder (Builder, toLazyText, fromString)
import System.FilePath import System.FilePath

View file

@ -4,7 +4,6 @@ import Control.Exception
import Data.Function (on, (&)) import Data.Function (on, (&))
import Data.List (sortBy, groupBy) import Data.List (sortBy, groupBy)
import qualified Data.Text.Lazy as Lazy import qualified Data.Text.Lazy as Lazy
import Data.Text.Lazy.Builder (Builder, toLazyText)
import System.FilePath ((</>), takeDirectory) import System.FilePath ((</>), takeDirectory)
import BuilderQQ import BuilderQQ

View file

@ -1,7 +1,6 @@
module IndexPage (make) where module IndexPage (make) where
import qualified Data.Text.Lazy as Lazy import qualified Data.Text.Lazy as Lazy
import Data.Text.Lazy.Builder (Builder, toLazyText)
import BuilderQQ import BuilderQQ
import Info import Info

View file

@ -8,7 +8,6 @@ import Records ()
import Control.Exception import Control.Exception
import qualified Data.Text as Strict import qualified Data.Text as Strict
import qualified Data.Text.Lazy as Lazy import qualified Data.Text.Lazy as Lazy
import Data.Text.Lazy.Builder (Builder, toLazyText)
import Data.Time (formatTime, defaultTimeLocale) import Data.Time (formatTime, defaultTimeLocale)
import Data.Maybe (fromMaybe) import Data.Maybe (fromMaybe)
import qualified Data.Char as Char import qualified Data.Char as Char