Hoogle Search

Within LTS Haskell 22.21 (ghc-9.6.5)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. unpack :: Text -> String

    text Data.Text

    O(n) Convert a Text into a String.

  2. unpack :: Text -> String

    text Data.Text.Lazy

    O(n) Convert a Text into a String.

  3. unpack :: ShortText -> [Char]

    text-short Data.Text.Short

    Convert ShortText into a list of Chars. This is an alias for toString.

    (pack . unpack) t == t
    

  4. unpackCString# :: Addr# -> Text

    text Data.Text

    O(n) Convert a null-terminated modified UTF-8 (but with a standard UTF-8 representation of characters from supplementary planes) string to a Text. Counterpart to unpackCStringUtf8#. No validation is performed, malformed input can lead to memory access violation.

  5. unpackCStringAscii# :: Addr# -> Text

    text Data.Text

    O(n) Convert a null-terminated ASCII string to a Text. Counterpart to unpackCString#. No validation is performed, malformed input can lead to memory access violation.

  6. unpacked :: Iso' Text String

    lens Data.Text.Lazy.Lens

    This isomorphism can be used to unpack (or pack) lazy Text.

    >>> "hello"^.unpacked -- :: String
    "hello"
    
    pack x ≡ x ^. from unpacked
    unpack x ≡ x ^. packed
    
    This Iso is provided for notational convenience rather than out of great need, since
    unpackedfrom packed
    

  7. unpacked :: IsText t => Iso' t String

    lens Data.Text.Lens

    This isomorphism can be used to unpack (or pack) both strict or lazy Text.

    unpack x ≡ x ^. unpacked
    pack x ≡ x ^. from unpacked
    
    This Iso is provided for notational convenience rather than out of great need, since
    unpackedfrom packed
    

  8. unpacked :: Iso' Text String

    lens Data.Text.Strict.Lens

    This isomorphism can be used to unpack (or pack) lazy Text.

    >>> "hello"^.unpacked -- :: String
    "hello"
    
    This Iso is provided for notational convenience rather than out of great need, since
    unpackedfrom packed
    
    pack x ≡ x ^. from unpacked
    unpack x ≡ x ^. packed
    unpackediso unpack pack
    

  9. unpacked :: Iso' Text String

    optics-extra Data.Text.Lazy.Optics

    This isomorphism can be used to unpack (or pack) lazy Text.

    >>> Text.pack "hello" ^. unpacked -- :: String
    "hello"
    
    pack x ≡ x ^. re unpacked
    unpack x ≡ x ^. packed
    
    This Iso is provided for notational convenience rather than out of great need, since
    unpackedre packed
    

  10. unpacked :: IsText t => Iso' t String

    optics-extra Data.Text.Optics

    This isomorphism can be used to unpack (or pack) both strict or lazy Text.

    unpack x ≡ x ^. unpacked
    pack x ≡ x ^. re unpacked
    
    This Iso is provided for notational convenience rather than out of great need, since
    unpackedre packed
    

Page 1 of 2 | Next