unison-parser-typechecker-0.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Unison.Util.Text

Synopsis

Documentation

newtype Text Source #

Constructors

Text (Rope Chunk) 

Instances

Instances details
IsString Text Source # 
Instance details

Defined in Unison.Util.Text

Methods

fromString :: String -> Text #

Monoid Text Source # 
Instance details

Defined in Unison.Util.Text

Methods

mempty :: Text #

mappend :: Text -> Text -> Text #

mconcat :: [Text] -> Text #

Semigroup Text Source # 
Instance details

Defined in Unison.Util.Text

Methods

(<>) :: Text -> Text -> Text #

sconcat :: NonEmpty Text -> Text #

stimes :: Integral b => b -> Text -> Text #

Show Text Source # 
Instance details

Defined in Unison.Util.Text

Methods

showsPrec :: Int -> Text -> ShowS #

show :: Text -> String #

showList :: [Text] -> ShowS #

Eq Text Source # 
Instance details

Defined in Unison.Util.Text

Methods

(==) :: Text -> Text -> Bool #

(/=) :: Text -> Text -> Bool #

Ord Text Source # 
Instance details

Defined in Unison.Util.Text

Methods

compare :: Text -> Text -> Ordering #

(<) :: Text -> Text -> Bool #

(<=) :: Text -> Text -> Bool #

(>) :: Text -> Text -> Bool #

(>=) :: Text -> Text -> Bool #

max :: Text -> Text -> Text #

min :: Text -> Text -> Text #

Sized Text Source # 
Instance details

Defined in Unison.Util.Text

Methods

size :: Text -> Int #

data Chunk Source #

Constructors

Chunk !Int !Text 

Instances

Instances details
Monoid Chunk Source # 
Instance details

Defined in Unison.Util.Text

Methods

mempty :: Chunk #

mappend :: Chunk -> Chunk -> Chunk #

mconcat :: [Chunk] -> Chunk #

Semigroup Chunk Source # 
Instance details

Defined in Unison.Util.Text

Methods

(<>) :: Chunk -> Chunk -> Chunk #

sconcat :: NonEmpty Chunk -> Chunk #

stimes :: Integral b => b -> Chunk -> Chunk #

Eq Chunk Source # 
Instance details

Defined in Unison.Util.Text

Methods

(==) :: Chunk -> Chunk -> Bool #

(/=) :: Chunk -> Chunk -> Bool #

Ord Chunk Source # 
Instance details

Defined in Unison.Util.Text

Methods

compare :: Chunk -> Chunk -> Ordering #

(<) :: Chunk -> Chunk -> Bool #

(<=) :: Chunk -> Chunk -> Bool #

(>) :: Chunk -> Chunk -> Bool #

(>=) :: Chunk -> Chunk -> Bool #

max :: Chunk -> Chunk -> Chunk #

min :: Chunk -> Chunk -> Chunk #

Drop Chunk Source # 
Instance details

Defined in Unison.Util.Text

Methods

drop :: Int -> Chunk -> Chunk #

Reverse Chunk Source # 
Instance details

Defined in Unison.Util.Text

Methods

reverse :: Chunk -> Chunk #

Sized Chunk Source # 
Instance details

Defined in Unison.Util.Text

Methods

size :: Chunk -> Int #

Take Chunk Source # 
Instance details

Defined in Unison.Util.Text

Methods

take :: Int -> Chunk -> Chunk #

Index Chunk Char Source # 
Instance details

Defined in Unison.Util.Text

Methods

unsafeIndex :: Int -> Chunk -> Char #

ordinal :: IsString s => Int -> s Source #

Return the ordinal representation of a number in English. A number ending with '1' must finish with st A number ending with '2' must finish with nd A number ending with '3' must finish with rd _except_ for 11, 12, and 13 which must finish with th

dropWhileMax :: (Char -> Bool) -> Int -> Text -> (Int, Text) Source #