Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose Text.Internal.Css #205

Merged
merged 1 commit into from
Apr 19, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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