Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- alternateFormat :: [FormatType] -> Literal -> [Text]
- hexRegex :: Text
- hexFloatRegex :: Text
- binaryRegex :: Text
- octalRegex :: Text
- decimalRegex :: Text
- numDecimalRegex :: Text
- matchLineRegex :: Text -> Text
- toFormatTypes :: [Extension] -> [FormatType]
- data FormatType
- generateNumDecimal :: Integer -> [Text]
- toNumDecimal :: Integer -> Integer -> Text
- toBinary :: (Integral a, Show a) => a -> String
- toOctal :: (Integral a, Show a) => a -> String
- toHex :: (Integral a, Show a) => a -> String
- toHexFloat :: RealFloat a => a -> String
- toFloatDecimal :: RealFloat a => a -> String
- toFloatExpDecimal :: RealFloat a => a -> String
Documentation
alternateFormat :: [FormatType] -> Literal -> [Text] 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
toFormatTypes :: [Extension] -> [FormatType] Source #
Translate a list of Extensions into Format Types (plus a base set of Formats)
data FormatType Source #
Instances
Eq FormatType Source # | |
Defined in Ide.Plugin.Conversion (==) :: FormatType -> FormatType -> Bool # (/=) :: FormatType -> FormatType -> Bool # | |
Show FormatType Source # | |
Defined in Ide.Plugin.Conversion showsPrec :: Int -> FormatType -> ShowS # show :: FormatType -> String # showList :: [FormatType] -> ShowS # | |
Generic FormatType Source # | |
Defined in Ide.Plugin.Conversion type Rep FormatType :: Type -> Type # from :: FormatType -> Rep FormatType x # to :: Rep FormatType x -> FormatType # | |
NFData FormatType Source # | |
Defined in Ide.Plugin.Conversion rnf :: FormatType -> () # | |
type Rep FormatType Source # | |
Defined in Ide.Plugin.Conversion |
generateNumDecimal :: Integer -> [Text] Source #
toHexFloat :: RealFloat a => a -> String Source #
toFloatDecimal :: RealFloat a => a -> String Source #
toFloatExpDecimal :: RealFloat a => a -> String Source #