Skip to content

Commit

Permalink
Merge pull request #205 from tolysz/export-css
Browse files Browse the repository at this point in the history
Expose Text.Internal.Css
  • Loading branch information
snoyberg committed Apr 19, 2017
2 parents 81b149d + 08172d8 commit b3eea5e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Text/Cassius.hs
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ module Text.Cassius
, cassiusUsedIdentifiers
) where

import Text.Css
import Text.Internal.Css
import Text.Shakespeare.Base
import Text.Shakespeare (VarType)
import Language.Haskell.TH.Quote (QuasiQuoter (..))
import Language.Haskell.TH.Syntax
import qualified Data.Text.Lazy as TL
import Text.CssCommon
import Text.Internal.CssCommon
import Text.Lucius (lucius)
import qualified Text.Lucius
import Text.IndentToBrace (i2b)
Expand Down
5 changes: 4 additions & 1 deletion Text/Css.hs → Text/Internal/Css.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{-# OPTIONS_HADDOCK hide #-}
-- | This module is only being exposed to work around a GHC bug, its API is not stable

{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
Expand All @@ -6,7 +9,7 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE EmptyDataDecls #-}
module Text.Css where
module Text.Internal.Css where

import Data.List (intersperse, intercalate)
import Data.Text.Lazy.Builder (Builder, singleton, toLazyText, fromLazyText, fromString)
Expand Down
7 changes: 5 additions & 2 deletions Text/CssCommon.hs → Text/Internal/CssCommon.hs
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
{-# OPTIONS_HADDOCK hide #-}
-- | This module is only being exposed to work around a GHC bug, its API is not stable

{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE CPP #-}
module Text.CssCommon where
module Text.Internal.CssCommon where

import Text.Css
import Text.Internal.Css
import Text.MkSizeType
import qualified Data.Text as TS
import Text.Printf (printf)
Expand Down
4 changes: 2 additions & 2 deletions Text/Lucius.hs
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ module Text.Lucius
, luciusUsedIdentifiers
) where

import Text.CssCommon
import Text.Internal.CssCommon
import Text.Shakespeare.Base
import Language.Haskell.TH.Quote (QuasiQuoter (..))
import Language.Haskell.TH.Syntax
import Data.Text (Text, unpack)
import qualified Data.Text.Lazy as TL
import Text.ParserCombinators.Parsec hiding (Line)
import Text.Css
import Text.Internal.Css
import Data.Char (isSpace, toLower, toUpper)
import Numeric (readHex)
import Control.Applicative ((<$>))
Expand Down
5 changes: 3 additions & 2 deletions shakespeare.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,12 @@ library
Text.Shakespeare.Base
Text.Shakespeare
Text.TypeScript
Text.Internal.Css
Text.Internal.CssCommon
other-modules: Text.Hamlet.Parse
Text.Css
Text.MkSizeType
Text.IndentToBrace
Text.CssCommon

ghc-options: -Wall

if flag(test_export)
Expand Down

0 comments on commit b3eea5e

Please sign in to comment.