hls-alternate-number-format-plugin-1.0.1.0: Provide Alternate Number Formats plugin for Haskell Language Server
Safe HaskellNone
LanguageHaskell2010

Ide.Plugin.Conversion

Synopsis

Documentation

alternateFormat :: [FormatType] -> Literal -> [Text] 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

toFormatTypes :: [Extension] -> [FormatType] Source #

Translate a list of Extensions into Format Types (plus a base set of Formats)

data FormatType Source #

Instances

Instances details
Eq FormatType Source # 
Instance details

Defined in Ide.Plugin.Conversion

Show FormatType Source # 
Instance details

Defined in Ide.Plugin.Conversion

Generic FormatType Source # 
Instance details

Defined in Ide.Plugin.Conversion

Associated Types

type Rep FormatType :: Type -> Type #

NFData FormatType Source # 
Instance details

Defined in Ide.Plugin.Conversion

Methods

rnf :: FormatType -> () #

type Rep FormatType Source # 
Instance details

Defined in Ide.Plugin.Conversion

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

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

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