reexport stuff from BuilderQQ
This commit is contained in:
parent
858e1c62ce
commit
cbff8f1a53
5 changed files with 4 additions and 5 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue