Module
Logs.Pretty
- Package
- purescript-pretty-logs
- Repository
- PureFunctor/purescript-pretty-logs
#FCons Source
data FCons :: FType -> FList -> FList
Instances
Parse "" (FCons (FLiteral "") FNil)
ParseImpl h "" (FCons (FLiteral h) FNil)
(Cons f n t, ReadF f f', Parse n r) => ParseImpl "%" t (FCons (FLiteral "") (FCons f' r))
(Parse t (FCons (FLiteral next) r), Cons h next rest) => ParseImpl h t (FCons (FLiteral rest) r)
(MakeLogSpecCss k r f) => MakeLogSpecCss k (FCons FStyling r) (CSS -> f)
(MakeLogSpecCss k r f) => MakeLogSpecCss k (FCons s r) f
(MakeLogSpecFmt r f) => MakeLogSpecFmt (FCons FString r) (String -> f)
(MakeLogSpecFmt r f, Show s) => MakeLogSpecFmt (FCons FShowable r) (s -> f)
(MakeLogSpecFmt r f) => MakeLogSpecFmt (FCons FStyling r) f
(IsSymbol l, MakeLogSpecFmt r f) => MakeLogSpecFmt (FCons (FLiteral l) r) f
#FString Source
data FString :: FType
Specifier for strings.
Instances
ReadF "s" FString
(MakeLogSpecFmt r f) => MakeLogSpecFmt (FCons FString r) (String -> f)
#FShowable Source
data FShowable :: FType
Specifier for showable types.
Instances
ReadF "S" FShowable
(MakeLogSpecFmt r f, Show s) => MakeLogSpecFmt (FCons FShowable r) (s -> f)
#FStyling Source
data FStyling :: FType
Specifier for %c
literals.
Instances
ReadF "c" FStyling
(MakeLogSpecCss k r f) => MakeLogSpecCss k (FCons FStyling r) (CSS -> f)
(MakeLogSpecFmt r f) => MakeLogSpecFmt (FCons FStyling r) f
#FLiteral Source
data FLiteral :: Symbol -> FType
Specifier for literal strings.
Instances
Parse "" (FCons (FLiteral "") FNil)
ParseImpl h "" (FCons (FLiteral h) FNil)
(Cons f n t, ReadF f f', Parse n r) => ParseImpl "%" t (FCons (FLiteral "") (FCons f' r))
(Parse t (FCons (FLiteral next) r), Cons h next rest) => ParseImpl h t (FCons (FLiteral rest) r)
(IsSymbol l, MakeLogSpecFmt r f) => MakeLogSpecFmt (FCons (FLiteral l) r) f
#ParseImpl Source
#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
(Parse s l, MakeLogSpecImpl l f) => MakeLogSpec s f
#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
mkLogSpecImpl :: Proxy l -> (Array CSS) -> f
Instances
(MakeLogSpecCss l l f) => MakeLogSpecImpl l f
#MakeLogSpecCss Source
class MakeLogSpecCss (k :: FList) (l :: FList) f | l -> f where
Emits CSS
arguments for the variadic function f
.
Members
mkLogSpecCss :: Proxy k -> Proxy l -> (Array CSS) -> f
Instances
(MakeLogSpecFmt k f) => MakeLogSpecCss k FNil f
(MakeLogSpecCss k r f) => MakeLogSpecCss k (FCons FStyling r) (CSS -> f)
(MakeLogSpecCss k r f) => MakeLogSpecCss k (FCons s r) f
#MakeLogSpecFmt Source
class MakeLogSpecFmt (l :: FList) f | l -> f where
Emits string formatting arguments for the variadic function f
.
Members
mkLogSpecFmt :: (Array CSS) -> Proxy l -> String -> f
Instances
MakeLogSpecFmt FNil LogSpec
(MakeLogSpecFmt r f) => MakeLogSpecFmt (FCons FString r) (String -> f)
(MakeLogSpecFmt r f, Show s) => MakeLogSpecFmt (FCons FShowable r) (s -> f)
(MakeLogSpecFmt r f) => MakeLogSpecFmt (FCons FStyling r) f
(IsSymbol l, MakeLogSpecFmt r f) => MakeLogSpecFmt (FCons (FLiteral l) r) f
#CSS Source
newtype CSS
Newtype wrapper for inline CSS.
Constructors
Instances
(MakeLogSpecCss k r f) => MakeLogSpecCss k (FCons FStyling r) (CSS -> f)
Newtype CSS _
- Modules
- Logs.
Pretty