| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Distribution.Utils.ShortText
Contents
Description
This is a legacy compatibility layer, new developments can use Data.Text directly.
This module is designed to be import qualified
import Distribution.Utils.ShortText (ShortText) import qualified Distribution.Utils.ShortText as ShortText
Synopsis
- type ShortText = Text
- toShortText :: String -> ShortText
- fromShortText :: ShortText -> String
- unsafeFromUTF8BS :: ByteString -> ShortText
- null :: ShortText -> Bool
- length :: ShortText -> Int
ShortText type
unsafeFromUTF8BS :: ByteString -> ShortText Source #
Convert from UTF-8 encoded strict ByteString.
Since: 3.2.0.0