License | BSD3 |
---|---|
Maintainer | The Idris Community. |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Idris.Colours
Description
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 #
Constructors
IdrisColour | |
Instances
Show IdrisColour # | |
Defined in Idris.Colours Methods showsPrec :: Int -> IdrisColour -> ShowS show :: IdrisColour -> String showList :: [IdrisColour] -> ShowS | |
NFData IdrisColour | |
Defined in Idris.DeepSeq Methods rnf :: IdrisColour -> () | |
Eq IdrisColour # | |
Defined in Idris.Colours |
data ColourTheme #
Constructors
ColourTheme | |
Instances
Generic ColourTheme # | |
Defined in Idris.Colours Associated Types type Rep ColourTheme :: Type -> Type | |
Show ColourTheme # | |
Defined in Idris.Colours Methods showsPrec :: Int -> ColourTheme -> ShowS show :: ColourTheme -> String showList :: [ColourTheme] -> ShowS | |
NFData ColourTheme | |
Defined in Idris.DeepSeq Methods rnf :: ColourTheme -> () | |
Eq ColourTheme # | |
Defined in Idris.Colours | |
type Rep ColourTheme # | |
Defined in Idris.Colours type Rep ColourTheme = D1 ('MetaData "ColourTheme" "Idris.Colours" "idris-1.3.4-BlNNV9hBERVKY9AdbdQobo" 'False) (C1 ('MetaCons "ColourTheme" 'PrefixI 'True) (((S1 ('MetaSel ('Just "keywordColour") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 IdrisColour) :*: S1 ('MetaSel ('Just "boundVarColour") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 IdrisColour)) :*: (S1 ('MetaSel ('Just "implicitColour") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 IdrisColour) :*: S1 ('MetaSel ('Just "functionColour") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 IdrisColour))) :*: ((S1 ('MetaSel ('Just "typeColour") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 IdrisColour) :*: S1 ('MetaSel ('Just "dataColour") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 IdrisColour)) :*: (S1 ('MetaSel ('Just "promptColour") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 IdrisColour) :*: S1 ('MetaSel ('Just "postulateColour") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 IdrisColour))))) |
Idris's default console colour theme
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 #
Set the colour of a string using POSIX escape codes
data ColourType #
Constructors
KeywordColour | |
BoundVarColour | |
ImplicitColour | |
FunctionColour | |
TypeColour | |
DataColour | |
PromptColour | |
PostulateColour |
Instances
Bounded ColourType # | |
Defined in Idris.Colours | |
Enum ColourType # | |
Defined in Idris.Colours Methods 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] | |
Show ColourType # | |
Defined in Idris.Colours Methods showsPrec :: Int -> ColourType -> ShowS show :: ColourType -> String showList :: [ColourType] -> ShowS | |
Eq ColourType # | |
Defined in Idris.Colours |
hStartColourise :: Handle -> IdrisColour -> IO () #
Start a colour on a handle, to support colour output on Windows
hEndColourise :: Handle -> IdrisColour -> IO () #
End a colour region on a handle