{-# LANGUAGE Safe #-}{- |Copyright: (c) 2016 Stephen Diehl (c) 2016-2018 Serokell (c) 2018-2021 KowainikSPDX-License-Identifier: MITMaintainer: Kowainik <xrom.xkov@gmail.com>Stability: StablePortability: PortableType classes for conversion between different string representations.The table below represents the @relude@ concept of conversion between the following types:* 'Text'* 'String'* 'ByteString'* 'LText'* 'LByteString'* 'ShortByteString'+-----------------------+---------------------+--------------+--------------+--------------------+------------------------+--------------------------+| From \\ To | 'Text' | 'String' | 'ByteString' | 'LText' | 'LByteString' | 'ShortByteString' |+=======================+=====================+==============+==============+====================+========================+==========================+| __'Text'__ | ~ | 'toString' | 'encodeUtf8' | 'toLazy'/'toLText' | 'encodeUtf8' | 'encodeUtf8' |+-----------------------+---------------------+--------------+--------------+--------------------+------------------------+--------------------------+| __'String'__ | 'toText' | ~ | 'encodeUtf8' | 'toLText' | 'encodeUtf8' | 'encodeUtf8' |+-----------------------+---------------------+--------------+--------------+--------------------+------------------------+--------------------------+| __'ByteString'__ | 'decodeUtf8' | 'decodeUtf8' | ~ | 'decodeUtf8' | 'toLazy' | 'toShort' |+-----------------------+---------------------+--------------+--------------+--------------------+------------------------+--------------------------+| __'LText'__ | 'toStrict'/'toText' | 'toString' | 'encodeUtf8' | ~ | 'encodeUtf8' | 'encodeUtf8' |+-----------------------+---------------------+--------------+--------------+--------------------+------------------------+--------------------------+| __'LByteString'__ | 'decodeUtf8' | 'decodeUtf8' | 'toStrict' | 'decodeUtf8' | ~ | @'toShort' . 'toStrict'@ |+-----------------------+---------------------+--------------+--------------+--------------------+------------------------+--------------------------+| __'ShortByteString'__ | 'decodeUtf8' | 'decodeUtf8' | 'fromShort' | 'decodeUtf8' |@'toLazy' . 'fromShort'@| ~ |+-----------------------+---------------------+--------------+--------------+--------------------+------------------------+--------------------------+-}module Relude.String ( module Relude.String.Reexport -- $reexport , module Relude.String.Conversion -- $conversion ) whereimport Relude.String.Conversionimport Relude.String.Reexport{- $reexportReexport data types and functions to work with 'Text', 'ByteString','ShortByteString'.-}{- $conversionConversion functions between 'Text', 'String', 'ByteString'.Also some read|show helper functions.-}