Module

Test.FlareDoc

Package
purescript-flaredoc
Repository
sharkdp/purescript-flaredoc

#withPackage Source

withPackage :: String -> (Documentation -> Eff (ajax :: AJAX, channel :: CHANNEL, console :: CONSOLE, dom :: DOM) Unit) -> Eff (ajax :: AJAX, channel :: CHANNEL, console :: CONSOLE, dom :: DOM, exception :: EXCEPTION) Unit

Parse a package description and run the interactive documentation.

#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

Instances

#SmallNumber Source

newtype SmallNumber

A newtype for numbers in the closed interval from 0.0 and 1.0.

Constructors

Instances

#SmallInt Source

newtype SmallInt

A newtype for small integer values in the range from 0 to 100.

Constructors

Instances

#Renderable Source

data Renderable

A data type that describes possible output actions and values for an interactive test.

Constructors

#NonNegativeInt Source

newtype NonNegativeInt

A newtype for non-negative integer values.

Constructors

Instances

#Multiline Source

newtype Multiline

A newtype for strings where "\n" is parsed as a newline (instead of "\n").

Constructors

Instances

#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

#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

Instances

#Read Source

class Read a  where

A class for types which can be parsed from a String. This class is used to construct input fields for Array a and List a.

Members

Instances

#interactiveShow Source

interactiveShow :: forall e t. Show t => UI e t -> UI e Renderable

A default interactive implementation for any Showable 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