napkin-1.0.0
Safe HaskellSafe-Inferred
LanguageGHC2021

Napkin.Spec.CliReporter

Synopsis

Documentation

type Success = Bool #

data State #

Instances

Instances details
Show State # 
Instance details

Defined in Napkin.Spec.CliReporter

Methods

showsPrec :: Int -> State -> ShowS #

show :: State -> String #

showList :: [State] -> ShowS #

Eq State # 
Instance details

Defined in Napkin.Spec.CliReporter

Methods

(==) :: State -> State -> Bool #

(/=) :: State -> State -> Bool #

data UIName #

Unique names for user interface elements necessary for brick.

Instances

Instances details
Show UIName # 
Instance details

Defined in Napkin.Spec.CliReporter

Eq UIName # 
Instance details

Defined in Napkin.Spec.CliReporter

Methods

(==) :: UIName -> UIName -> Bool #

(/=) :: UIName -> UIName -> Bool #

Ord UIName # 
Instance details

Defined in Napkin.Spec.CliReporter

data PreviousStates #

Instances

Instances details
Generic PreviousStates # 
Instance details

Defined in Napkin.Spec.CliReporter

Associated Types

type Rep PreviousStates :: Type -> Type #

type Rep PreviousStates # 
Instance details

Defined in Napkin.Spec.CliReporter

type Rep PreviousStates = D1 ('MetaData "PreviousStates" "Napkin.Spec.CliReporter" "napkin-1.0.0-B79azc00rn1K8mj00hwhwG" 'False) (C1 ('MetaCons "PreviousStates" 'PrefixI 'True) (S1 ('MetaSel ('Just "processingTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ElapsedSeconds)) :*: (S1 ('MetaSel ('Just "finishedTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ElapsedSeconds)) :*: S1 ('MetaSel ('Just "info") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe String)))))

data StateInfo #

Instances

Instances details
Generic StateInfo # 
Instance details

Defined in Napkin.Spec.CliReporter

Associated Types

type Rep StateInfo :: Type -> Type #

type Rep StateInfo # 
Instance details

Defined in Napkin.Spec.CliReporter

type Rep StateInfo = D1 ('MetaData "StateInfo" "Napkin.Spec.CliReporter" "napkin-1.0.0-B79azc00rn1K8mj00hwhwG" 'False) (C1 ('MetaCons "StateInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 State) :*: (S1 ('MetaSel ('Just "previousStates") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PreviousStates) :*: S1 ('MetaSel ('Just "sourceInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EventSourceInfo))))

data DrawState b #

Instances

Instances details
Generic (DrawState b) # 
Instance details

Defined in Napkin.Spec.CliReporter

Associated Types

type Rep (DrawState b) :: Type -> Type #

Methods

from :: DrawState b -> Rep (DrawState b) x #

to :: Rep (DrawState b) x -> DrawState b #

type Rep (DrawState b) # 
Instance details

Defined in Napkin.Spec.CliReporter

type Rep (DrawState b) = D1 ('MetaData "DrawState" "Napkin.Spec.CliReporter" "napkin-1.0.0-B79azc00rn1K8mj00hwhwG" 'False) (C1 ('MetaCons "DrawState" 'PrefixI 'True) (((S1 ('MetaSel ('Just "startTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime) :*: (S1 ('MetaSel ('Just "tableNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TableNameMap) :*: S1 ('MetaSel ('Just "showPostProcessedTableRef") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :*: (S1 ('MetaSel ('Just "tableStates") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 States) :*: (S1 ('MetaSel ('Just "elapsedTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ElapsedSeconds) :*: S1 ('MetaSel ('Just "processingTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ElapsedSeconds)))) :*: ((S1 ('MetaSel ('Just "runDone") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "wantsToQuit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "eta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EtaType))) :*: (S1 ('MetaSel ('Just "trackingQueryStats") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (TrackingQueryStats b)) :*: (S1 ('MetaSel ('Just "showError") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "specListView") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SpecListView))))))

data BeforeAfterRenamerRef #

represents table naming before and after renamer processing

Instances

Instances details
Generic BeforeAfterRenamerRef # 
Instance details

Defined in Napkin.Spec.CliReporter

Associated Types

type Rep BeforeAfterRenamerRef :: Type -> Type #

type Rep BeforeAfterRenamerRef # 
Instance details

Defined in Napkin.Spec.CliReporter

type Rep BeforeAfterRenamerRef = D1 ('MetaData "BeforeAfterRenamerRef" "Napkin.Spec.CliReporter" "napkin-1.0.0-B79azc00rn1K8mj00hwhwG" 'False) (C1 ('MetaCons "BeforeAfterRenamerRef" 'PrefixI 'True) (S1 ('MetaSel ('Just "beforeRef") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SpecTableName) :*: S1 ('MetaSel ('Just "afterRef") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ref Table))))

cliReporter :: HasBackendQueryStats b => RuntimeEventQueue b -> [BeforeAfterRenamerRef] -> EtaType -> IO Success #

Pump the runtime event queue to display Spec execution progress in the terminal. Returns after all Specs are completed.