Skip to content

Commit c798dfe

Browse files
change re-export of Data.String
1 parent 04154a5 commit c798dfe

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/Data/String.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ module Data.String
3636
, joinWith
3737
) where
3838

39-
import Prelude
39+
import Prelude (class Ord, class Eq, class Show, Ordering(LT, EQ, GT), zero, one, (<<<), (<>), (==), ($), (-))
4040

4141
import Data.Maybe (Maybe(..), isJust)
4242
import Data.Newtype (class Newtype)
43-
import Data.String.Unsafe as U
43+
import Data.String.Unsafe (charAt) as U
4444

4545
-- | A newtype used in cases where there is a string to be matched.
4646
newtype Pattern = Pattern String

src/Data/String/CodePoints.purs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ import Data.List (List(Cons, Nil), fromFoldable)
2727
import Data.Maybe (Maybe(Just, Nothing))
2828
import Data.Newtype (class Newtype)
2929
import Data.String as String
30-
import Data.String hiding (count, drop, dropWhile, indexOf, indexOf', lastIndexOf, lastIndexOf', length, singleton, splitAt, take, takeWhile, uncons) as StringReExports
30+
-- WARN: This list must be updated to re-export any exports added to Data.String. That makes me sad.
31+
import Data.String (Pattern(..), Replacement(..), charAt, charCodeAt, contains, fromCharArray, joinWith, localeCompare, null, replace, replaceAll, split, stripPrefix, stripSuffix, toChar, toCharArray, toLower, toUpper, trim) as StringReExports
3132
import Data.Tuple (Tuple(Tuple))
3233
import Data.Unfoldable (unfoldr)
3334
import Prelude (class Eq, class Ord, (&&), (||), (*), (+), (-), (<$>), (<), (<=), (<<<))

0 commit comments

Comments
 (0)