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.
unpacked :: IsText t => Iso' t Stringoptics-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, sinceunpacked ≡ re packed
-
optics-extra Data.Text.Strict.Optics This isomorphism can be used to unpack (or pack) strict Text.
>>> Strict.pack "hello" ^. unpacked -- :: String "hello"
This Iso is provided for notational convenience rather than out of great need, sinceunpacked ≡ re packed
pack x ≡ x ^. re unpacked unpack x ≡ x ^. packed unpacked ≡ iso unpack pack
unpackUtf8 :: Text -> [CodeUnit]alfred-margaret Data.Text.Utf8 No documentation available.
Page 2 of 2 | Previous