Module

Logs.Pretty

#FList

data FList

List of format specifiers.

#FCons

data FCons :: FType -> FList -> FList

Instances

#FType

data FType

Type of format specifiers.

#FString

data FString :: FType

Specifier for strings.

Instances

#FShowable

data FShowable :: FType

Specifier for showable types.

Instances

#FStyling

data FStyling :: FType

Specifier for %c literals.

Instances

#FLiteral

data FLiteral :: Symbol -> FType

Specifier for literal strings.

Instances

#ReadF

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

Reads an FType from a string.

Instances

#Parse

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

Parses an FList from a string.

Instances

#ParseImpl

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

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

Instances

#MakeLogSpec

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

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

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

Emits CSS arguments for the variadic function f.

Members

Instances

#MakeLogSpecFmt

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

Emits string formatting arguments for the variadic function f.

Members

Instances

#CSS

newtype CSS

Newtype wrapper for inline CSS.

Constructors

Instances

#LogSpec

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

logPretty :: LogSpec -> Effect Unit

Performs logging using a provided LogSpec.

Modules