Test.FlareDoc
- Package
- purescript-flaredoc
- Repository
- sharkdp/purescript-flaredoc
#flareDoc' Source
flareDoc' :: forall e t. Interactive t => ElementId -> Documentation -> String -> String -> t -> Eff (channel :: CHANNEL, dom :: DOM | e) Unit
Like flareDoc
, but the HTML element can be specified.
#flareDoc Source
flareDoc :: forall e t. Interactive t => Documentation -> String -> String -> t -> Eff (channel :: CHANNEL, dom :: DOM | e) Unit
Add an interactive documentation entry. The String
arguments specify the
module name and the function name, respectively.
Re-exports from Test.FlareCheck
#WrapEnum Source
newtype WrapEnum a
Constructors
WrapEnum a
Instances
(BoundedEnum a, Show a) => Flammable (WrapEnum a)
(Generic a) => Interactive (WrapEnum a)
#SmallNumber Source
newtype SmallNumber
A newtype for numbers in the closed interval from 0.0 and 1.0.
Constructors
Instances
#NonNegativeInt Source
#Flammable Source
class Flammable a where
A type class for input parameters for interactive tests. Instances for
type a
must provide a way to create a Flare UI which holds a value of
type a
.
Members
Instances
Flammable Number
Flammable Int
Flammable String
Flammable Char
Flammable Boolean
(Flammable a, Flammable b) => Flammable (Tuple a b)
(Flammable a) => Flammable (Maybe a)
(Flammable a, Flammable b) => Flammable (Either a b)
Flammable NonNegativeInt
Flammable SmallInt
Flammable SmallNumber
Flammable Multiline
(BoundedEnum a, Show a) => Flammable (WrapEnum a)
(Read a) => Flammable (Array a)
(Read a) => Flammable (List a)
#Interactive Source
class Interactive t where
A type class for interactive tests. Instances must provide a way to create
a Flare UI which returns a Renderable
output.
Members
interactive :: forall e. UI e t -> UI e Renderable
Instances
Interactive Number
Interactive Int
Interactive String
Interactive Char
Interactive Boolean
Interactive Ordering
Interactive GenericSpine
(Generic a) => Interactive (Maybe a)
(Generic a, Generic b) => Interactive (Either a b)
(Generic a, Generic b) => Interactive (Tuple a b)
(Generic a) => Interactive (Array a)
(Generic a) => Interactive (List a)
(Generic a) => Interactive (WrapEnum a)
(Flammable a, Interactive b) => Interactive (a -> b)
#interactiveShow Source
interactiveShow :: forall e t. Show t => UI e t -> UI e Renderable
A default interactive
implementation for any Show
able type.
#interactiveGeneric Source
interactiveGeneric :: forall e a. Generic a => UI e a -> UI e Renderable
A default interactive
implementation for types with a Generic
instance.
#interactiveFoldable Source
interactiveFoldable :: forall e a f. Foldable f => Generic a => UI e (f a) -> UI e Renderable
A default interactive
implementation for Foldable
types.
#flareCheck' Source
flareCheck' :: forall e t. Interactive t => ElementId -> Label -> t -> Eff (channel :: CHANNEL, dom :: DOM | e) Unit
Run an interactive test. The ID specifies the parent element to which the test will be appended and the label provides a title for the test.
#flareCheck Source
flareCheck :: forall e t. Interactive t => Label -> t -> Eff (channel :: CHANNEL, dom :: DOM | e) Unit
Run an interactive test. The label provides a title for the test.
- Modules
- Test.
FlareDoc