Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- alternateFormat :: Literal -> [AlternateFormat]
- hexRegex :: Text
- hexFloatRegex :: Text
- binaryRegex :: Text
- octalRegex :: Text
- decimalRegex :: Text
- numDecimalRegex :: Text
- matchLineRegex :: Text -> Text
- toOctal :: Integral a => a -> String
- toDecimal :: Integral a => a -> String
- toBinary :: Integral a => a -> String
- toHex :: Integral a => a -> String
- toFloatDecimal :: RealFloat a => a -> String
- toFloatExpDecimal :: RealFloat a => a -> String
- toHexFloat :: RealFloat a => a -> String
- type AlternateFormat = (Text, ExtensionNeeded)
- data ExtensionNeeded
Documentation
alternateFormat :: Literal -> [AlternateFormat] Source #
Generate alternate formats for a single Literal based on FormatType's given.
hexFloatRegex :: Text Source #
Regex to match a Haskell Hex Float Literal
binaryRegex :: Text Source #
Regex to match a Haskell Binary Literal
octalRegex :: Text Source #
Regex to match a Haskell Octal Literal
decimalRegex :: Text Source #
Regex to match a Haskell Decimal Literal (no decimal points)
numDecimalRegex :: Text Source #
Regex to match a Haskell Literal with an explicit exponent
matchLineRegex :: Text -> Text Source #
Wraps a Regex with a beginning ("^") and end ("$") token
toFloatDecimal :: RealFloat a => a -> String Source #
toFloatExpDecimal :: RealFloat a => a -> String Source #
toHexFloat :: RealFloat a => a -> String Source #
type AlternateFormat = (Text, ExtensionNeeded) Source #