hls-alternate-number-format-plugin-1.2.0.0: Provide Alternate Number Formats plugin for Haskell Language Server
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ide.Plugin.Conversion

Synopsis

Documentation

alternateFormat :: Literal -> [AlternateFormat] Source #

Generate alternate formats for a single Literal based on FormatType's given.

hexRegex :: Text Source #

Regex to match a Haskell Hex Literal

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

toOctal :: (Integral a, Show a) => a -> String Source #

toBinary :: (Integral a, Show a) => a -> String Source #

toHex :: (Integral a, Show a) => a -> String Source #