Hoogle Search

Within LTS Haskell 22.23 (ghc-9.6.5)

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

  1. unpacked :: Iso' Text String

    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, since
    unpackedre packed
    
    pack x ≡ x ^. re unpacked
    unpack x ≡ x ^. packed
    unpackediso unpack pack
    

Page 2 of 2 | Previous