-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-export some Data.Text modules for the purpose of downstream librar…
…ies being able to write code compatible with the fake text module
- Loading branch information
Showing
9 changed files
with
75 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,5 @@ type Text = T.Text | |
length = T.length | ||
lines = T.lines | ||
toStrict = id | ||
pack = T.pack | ||
unpack = T.unpack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
-- | This module is for use by packages that need to be able to use the prettyprinter package | ||
-- without incurring a dependency on the text package. | ||
-- | ||
-- Legitimate examples of packages must have text as an optional dependency, include text (or | ||
-- bytetring). | ||
module Prettyprinter.Util.Compat.Text | ||
( module Data.Text | ||
) where | ||
|
||
import Data.Text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
-- | This module is for use by packages that need to be able to use the prettyprinter package | ||
-- without incurring a dependency on the text package. | ||
-- | ||
-- Legitimate examples of packages must have text as an optional dependency, include text (or | ||
-- bytetring). | ||
module Prettyprinter.Util.Compat.Text.IO | ||
( module Data.Text.IO | ||
) where | ||
|
||
import Data.Text.IO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
-- | This module is for use by packages that need to be able to use the prettyprinter package | ||
-- without incurring a dependency on the text package. | ||
-- | ||
-- Legitimate examples of packages must have text as an optional dependency, include text (or | ||
-- bytetring). | ||
module Prettyprinter.Util.Compat.Text.Lazy | ||
( module Data.Text.Lazy | ||
) where | ||
|
||
import Data.Text.Lazy |
10 changes: 10 additions & 0 deletions
10
prettyprinter/src/Prettyprinter/Util/Compat/Text/Lazy/Builder.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
-- | This module is for use by packages that need to be able to use the prettyprinter package | ||
-- without incurring a dependency on the text package. | ||
-- | ||
-- Legitimate examples of packages must have text as an optional dependency, include text (or | ||
-- bytetring). | ||
module Prettyprinter.Util.Compat.Text.Lazy.Builder | ||
( module Data.Text.Lazy.Builder | ||
) where | ||
|
||
import Data.Text.Lazy.Builder |