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. pack :: String -> Text

    text Data.Text

    O(n) Convert a String into a Text. Performs replacement on invalid scalar values, so unpack . pack is not id:

    >>> Data.Text.unpack (pack "\55555")
    "\65533"
    

  2. pack :: String -> Text

    text Data.Text.Internal

    O(n) Convert a String into a Text. Performs replacement on invalid scalar values, so unpack . pack is not id:

    >>> Data.Text.unpack (pack "\55555")
    "\65533"
    

  3. pack :: String -> Text

    text Data.Text.Lazy

    O(n) Convert a String into a Text. Performs replacement on invalid scalar values, so unpack . pack is not id:

    >>> Data.Text.Lazy.unpack (Data.Text.Lazy.pack "\55555")
    "\65533"
    

  4. pack :: [Char] -> ShortText

    text-short Data.Text.Short

    Construct a ShortText from a list of Chars. This is an alias for fromString.

  5. packed :: Iso' String Text

    lens Data.Text.Lazy.Lens

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

    >>> "hello"^.packed -- :: Text
    "hello"
    
    pack x ≡ x ^. packed
    unpack x ≡ x ^. from packed
    packedfrom unpacked
    

  6. packed :: IsText t => Iso' String t

    lens Data.Text.Lens

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

    pack x ≡ x ^. packed
    unpack x ≡ x ^. from packed
    packedfrom unpacked
    

  7. packed :: Iso' String Text

    lens Data.Text.Strict.Lens

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

    >>> "hello"^.packed -- :: Text
    "hello"
    
    pack x ≡ x ^. packed
    unpack x ≡ x ^. from packed
    packedfrom unpacked
    packediso pack unpack
    

  8. packed :: Iso' String Text

    optics-extra Data.Text.Lazy.Optics

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

    >>> "hello" ^. packed -- :: Text
    "hello"
    
    pack x ≡ x ^. packed
    unpack x ≡ x ^. re packed
    packedre unpacked
    

  9. packed :: IsText t => Iso' String t

    optics-extra Data.Text.Optics

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

    pack x ≡ x ^. packed
    unpack x ≡ x ^. re packed
    packedre unpacked
    

  10. packed :: Iso' String Text

    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
    packedre unpacked
    packediso pack unpack
    

Page 1 of many | Next