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

Move lazy builder internals to Internal.Lazy.Builder #207

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

-----------------------------------------------------------------------------
-- |
-- Module : Data.Text.Internal.Builder
-- Module : Data.Text.Internal.Lazy.Builder
-- Copyright : (c) 2013 Bryan O'Sullivan
-- (c) 2010 Johan Tibell
-- License : BSD-style (see LICENSE)
Expand Down Expand Up @@ -35,7 +35,7 @@
--
-----------------------------------------------------------------------------

module Data.Text.Internal.Builder
module Data.Text.Internal.Lazy.Builder
( -- * Public API
-- ** The Builder type
Builder
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{-# LANGUAGE MagicHash #-}

-- |
-- Module : Data.Text.Internal.Builder.Functions
-- Module : Data.Text.Internal.Lazy.Builder.Functions
-- Copyright : (c) 2011 MailRank, Inc.
--
-- License : BSD-style
Expand All @@ -15,7 +15,7 @@
--
-- Useful functions and combinators.

module Data.Text.Internal.Builder.Functions
module Data.Text.Internal.Lazy.Builder.Functions
(
(<>)
, i2d
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{-# LANGUAGE OverloadedStrings #-}

-- Module: Data.Text.Internal.Builder.Int.Digits
-- Module: Data.Text.Internal.Lazy.Builder.Int.Digits
-- Copyright: (c) 2013 Bryan O'Sullivan
-- License: BSD-style
-- Maintainer: Bryan O'Sullivan <[email protected]>
Expand All @@ -14,7 +14,7 @@
-- This module exists because the C preprocessor does things that we
-- shall not speak of when confronted with Haskell multiline strings.

module Data.Text.Internal.Builder.Int.Digits (digits) where
module Data.Text.Internal.Lazy.Builder.Int.Digits (digits) where

import Data.ByteString.Char8 (ByteString)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{-# LANGUAGE CPP #-}

-- |
-- Module: Data.Text.Internal.Builder.RealFloat.Functions
-- Module: Data.Text.Internal.Lazy.Builder.RealFloat.Functions
-- Copyright: (c) The University of Glasgow 1994-2002
-- License: see libraries/base/LICENSE
--
-- /Warning/: this is an internal module, and does not have a stable
-- API or name. Functions in this module may not check or enforce
-- preconditions expected by public modules. Use at your own risk!

module Data.Text.Internal.Builder.RealFloat.Functions
module Data.Text.Internal.Lazy.Builder.RealFloat.Functions
(
roundTo
) where
Expand Down
2 changes: 1 addition & 1 deletion Data/Text/Lazy/Builder.hs
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ module Data.Text.Lazy.Builder
, flush
) where

import Data.Text.Internal.Builder
import Data.Text.Internal.Lazy.Builder
6 changes: 3 additions & 3 deletions Data/Text/Lazy/Builder/Int.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ module Data.Text.Lazy.Builder.Int
import Data.Int (Int8, Int16, Int32, Int64)
import Data.Monoid (mempty)
import qualified Data.ByteString.Unsafe as B
import Data.Text.Internal.Builder.Functions ((<>), i2d)
import Data.Text.Internal.Builder
import Data.Text.Internal.Builder.Int.Digits (digits)
import Data.Text.Internal.Lazy.Builder.Functions ((<>), i2d)
import Data.Text.Internal.Lazy.Builder
import Data.Text.Internal.Lazy.Builder.Int.Digits (digits)
import Data.Text.Array
import Data.Word (Word, Word8, Word16, Word32, Word64)
import GHC.Base (quotInt, remInt)
Expand Down
4 changes: 2 additions & 2 deletions Data/Text/Lazy/Builder/RealFloat.hs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ module Data.Text.Lazy.Builder.RealFloat

import Data.Array.Base (unsafeAt)
import Data.Array.IArray
import Data.Text.Internal.Builder.Functions ((<>), i2d)
import Data.Text.Internal.Lazy.Builder.Functions ((<>), i2d)
import Data.Text.Lazy.Builder.Int (decimal)
import Data.Text.Internal.Builder.RealFloat.Functions (roundTo)
import Data.Text.Internal.Lazy.Builder.RealFloat.Functions (roundTo)
import Data.Text.Lazy.Builder
import qualified Data.Text as T
#if MIN_VERSION_base(4,11,0)
Expand Down
8 changes: 4 additions & 4 deletions tests/text-tests.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ library
Data.Text.Internal
Data.Text.Lazy
Data.Text.Lazy.Builder
Data.Text.Internal.Builder.Functions
Data.Text.Internal.Lazy.Builder.Functions
Data.Text.Lazy.Builder.Int
Data.Text.Internal.Builder.Int.Digits
Data.Text.Internal.Builder
Data.Text.Internal.Lazy.Builder.Int.Digits
Data.Text.Internal.Lazy.Builder
Data.Text.Lazy.Builder.RealFloat
Data.Text.Internal.Builder.RealFloat.Functions
Data.Text.Internal.Lazy.Builder.RealFloat.Functions
Data.Text.Lazy.Encoding
Data.Text.Internal.Lazy.Encoding.Fusion
Data.Text.Internal.Lazy.Fusion
Expand Down
8 changes: 4 additions & 4 deletions text.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,6 @@ library
Data.Text.Foreign
Data.Text.IO
Data.Text.Internal
Data.Text.Internal.Builder
Data.Text.Internal.Builder.Functions
Data.Text.Internal.Builder.Int.Digits
Data.Text.Internal.Builder.RealFloat.Functions
Data.Text.Internal.Encoding.Fusion
Data.Text.Internal.Encoding.Fusion.Common
Data.Text.Internal.Encoding.Utf16
Expand All @@ -110,6 +106,10 @@ library
Data.Text.Internal.Fusion.Types
Data.Text.Internal.IO
Data.Text.Internal.Lazy
Data.Text.Internal.Lazy.Builder
Data.Text.Internal.Lazy.Builder.Functions
Data.Text.Internal.Lazy.Builder.Int.Digits
Data.Text.Internal.Lazy.Builder.RealFloat.Functions
Data.Text.Internal.Lazy.Encoding.Fusion
Data.Text.Internal.Lazy.Fusion
Data.Text.Internal.Lazy.Search
Expand Down