Hoogle Search
Within LTS Haskell 24.2 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
optics-extra Data.Text.Strict.Optics This isomorphism can be used to pack (or unpack) strict Text.
>>> "hello" ^. packed -- :: Text "hello"
pack x ≡ x ^. packed unpack x ≡ x ^. re packed packed ≡ re unpacked packed ≡ iso pack unpack
-
text Data.Text unpackCString# :: Addr# -> Texttext 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.
unpackCStringAscii# :: Addr# -> Texttext 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.
-
text Data.Text.Lazy -
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, sinceunpacked ≡ from packed
unpacked :: IsText t => Iso' t Stringlens 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, sinceunpacked ≡ from packed
-
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, sinceunpacked ≡ from packed
pack x ≡ x ^. from unpacked unpack x ≡ x ^. packed unpacked ≡ iso unpack pack
-
text-short Data.Text.Short Convert ShortText into a list of Chars. This is an alias for toString.
(pack . unpack) t == t
-
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, sinceunpacked ≡ re packed