Module

Logs.Pretty

Package
purescript-pretty-logs
Repository
PureFunctor/purescript-pretty-logs

#FList Source

data FList

List of format specifiers.

#FCons Source

data FCons :: FType -> FList -> FList

Instances

#FType Source

data FType

Type of format specifiers.

#FString Source

data FString :: FType

Specifier for strings.

Instances

#FShowable Source

data FShowable :: FType

Specifier for showable types.

Instances

#FStyling Source

data FStyling :: FType

Specifier for %c literals.

Instances

#FLiteral Source

data FLiteral :: Symbol -> FType

Specifier for literal strings.

Instances

#ReadF Source

class ReadF (i :: Symbol) (o :: FType) | i -> o

Reads an FType from a string.

Instances

#Parse Source

class Parse (s :: Symbol) (a :: FList) | s -> a

Parses an FList from a string.

Instances

#ParseImpl Source

class ParseImpl (h :: Symbol) (t :: Symbol) (a :: FList) | h t -> a

Parses an FList from a string, helps ease infinite types.

Instances

#MakeLogSpec Source

class MakeLogSpec (s :: Symbol) f | s -> f where

Creates a variadic function f for creating a LogSpec by parsing the provided type-level symbol.

Members

Instances

#MakeLogSpecImpl Source

class MakeLogSpecImpl (l :: FList) f | l -> f where

Creates a variadic function f for creating a LogSpec by traversing the provided list of format specifiers.

Members

Instances

#MakeLogSpecCss Source

class MakeLogSpecCss (k :: FList) (l :: FList) f | l -> f where

Emits CSS arguments for the variadic function f.

Members

Instances

#MakeLogSpecFmt Source

class MakeLogSpecFmt (l :: FList) f | l -> f where

Emits string formatting arguments for the variadic function f.

Members

Instances

#CSS Source

newtype CSS

Newtype wrapper for inline CSS.

Constructors

Instances

#LogSpec Source

type LogSpec = { message :: String, styling :: Array CSS }

Represents arguments used for console.log.

Used in the following manner internally:

console.log(message, ...styling)

Instances

#logPretty Source

logPretty :: LogSpec -> Effect Unit

Performs logging using a provided LogSpec.

Modules
Logs.Pretty