cabal2nix-2.20.1: Convert Cabal files into Nix build instructions.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Distribution.Nixpkgs.Color

Synopsis

Documentation

maybeColor :: Handle -> [SGR] -> String -> IO String Source #

If the given Handle should be colored, wrap a String in SGR codes.

colorStderrLn :: MonadIO m => [SGR] -> String -> m () Source #

warningColor :: [SGR] Source #

Colors that indicate a warning message.

errorColor :: [SGR] Source #

Colors that indicate an error message.

commandColor :: [SGR] Source #

Colors that indicate a command is being executed.