License | BSD3 |
---|---|
Maintainer | The Idris Community. |
Safe Haskell | Safe |
Language | Haskell2010 |
Synopsis
- data IdrisColour = IdrisColour {}
- data ColourTheme = ColourTheme {}
- defaultTheme :: ColourTheme
- colouriseKwd :: ColourTheme -> String -> String
- colouriseBound :: ColourTheme -> String -> String
- colouriseImplicit :: ColourTheme -> String -> String
- colourisePostulate :: ColourTheme -> String -> String
- colouriseType :: ColourTheme -> String -> String
- colouriseFun :: ColourTheme -> String -> String
- colouriseData :: ColourTheme -> String -> String
- colouriseKeyword :: ColourTheme -> String -> String
- colourisePrompt :: ColourTheme -> String -> String
- colourise :: IdrisColour -> String -> String
- data ColourType
- hStartColourise :: Handle -> IdrisColour -> IO ()
- hEndColourise :: Handle -> IdrisColour -> IO ()
Documentation
data IdrisColour Source #
Instances
Eq IdrisColour Source # | |
Defined in Idris.Colours (==) :: IdrisColour -> IdrisColour -> Bool # (/=) :: IdrisColour -> IdrisColour -> Bool # | |
Show IdrisColour Source # | |
Defined in Idris.Colours showsPrec :: Int -> IdrisColour -> ShowS # show :: IdrisColour -> String # showList :: [IdrisColour] -> ShowS # | |
NFData IdrisColour # | |
Defined in Idris.DeepSeq rnf :: IdrisColour -> () # |
data ColourTheme Source #
Instances
defaultTheme :: ColourTheme Source #
Idris's default console colour theme
colouriseKwd :: ColourTheme -> String -> String Source #
colouriseBound :: ColourTheme -> String -> String Source #
colouriseImplicit :: ColourTheme -> String -> String Source #
colourisePostulate :: ColourTheme -> String -> String Source #
colouriseType :: ColourTheme -> String -> String Source #
colouriseFun :: ColourTheme -> String -> String Source #
colouriseData :: ColourTheme -> String -> String Source #
colouriseKeyword :: ColourTheme -> String -> String Source #
colourisePrompt :: ColourTheme -> String -> String Source #
colourise :: IdrisColour -> String -> String Source #
Set the colour of a string using POSIX escape codes
data ColourType Source #
KeywordColour | |
BoundVarColour | |
ImplicitColour | |
FunctionColour | |
TypeColour | |
DataColour | |
PromptColour | |
PostulateColour |
Instances
Bounded ColourType Source # | |
Defined in Idris.Colours minBound :: ColourType # maxBound :: ColourType # | |
Enum ColourType Source # | |
Defined in Idris.Colours succ :: ColourType -> ColourType # pred :: ColourType -> ColourType # toEnum :: Int -> ColourType # fromEnum :: ColourType -> Int # enumFrom :: ColourType -> [ColourType] # enumFromThen :: ColourType -> ColourType -> [ColourType] # enumFromTo :: ColourType -> ColourType -> [ColourType] # enumFromThenTo :: ColourType -> ColourType -> ColourType -> [ColourType] # | |
Eq ColourType Source # | |
Defined in Idris.Colours (==) :: ColourType -> ColourType -> Bool # (/=) :: ColourType -> ColourType -> Bool # | |
Show ColourType Source # | |
Defined in Idris.Colours showsPrec :: Int -> ColourType -> ShowS # show :: ColourType -> String # showList :: [ColourType] -> ShowS # |
hStartColourise :: Handle -> IdrisColour -> IO () Source #
Start a colour on a handle, to support colour output on Windows
hEndColourise :: Handle -> IdrisColour -> IO () Source #
End a colour region on a handle