Search results
renderAudio :: Array (Effect Unit) -> Effect Unit
Render audio from an array of audio rendering instructions. This is conceptually the same as
taking Array Effect Unit -> Effect Unit
and doing map fold <<< sequence
.
The reason this version is used is because it is ~2x more computationally efficient,
which is important in order to be able to hit audio deadlines.
sequenceEffects :: Array (Effect Unit) -> Effect Unit
resolve :: forall m. Monad m => Foldable m => m (Effect Unit) -> Effect Unit
debugShow :: forall a. Show a => a -> Effect Unit
Write an debug value to the console, using its Show
instance to produce a
String
.
errorShow :: forall a. Show a => a -> Effect Unit
Write an error value to the console, using its Show
instance to produce a
String
.
infoShow :: forall a. Show a => a -> Effect Unit
Write an info value to the console, using its Show
instance to produce a
String
.
logShow :: forall a. Show a => a -> Effect Unit
Write a value to the console, using its Show
instance to produce a
String
.
warnShow :: forall a. Show a => a -> Effect Unit
Write an warning value to the console, using its Show
instance to produce
a String
.
eval :: forall a. Eval a => a -> Effect Unit
quickCheck :: forall prop. Testable prop => prop -> Effect Unit
Test a property.
This function generates a new random seed, runs 100 tests and prints the test results to the console.
end :: forall s a. Write s a => s -> Effect Unit
endImpl :: forall s. s -> Effect Unit
log :: forall a. a -> Effect Unit
preventDefault :: forall e. IsEvent e => e -> Effect Unit
Prevents the default action from being executed after propagation
propagationStopped :: forall e. IsEvent e => e -> Effect Unit
Whether propagation has been stopped
remove :: forall n. IsChild n => n -> Effect Unit
Unhook the current node from its parent
stopImmediatePropagation :: forall e. IsEvent e => e -> Effect Unit
Stops immediate propagation of the event
stopPropagation :: forall e. IsEvent e => e -> Effect Unit
Stops propagation of the event
cork :: forall writable. Writable writable => writable -> Effect Unit
defaultCork :: forall writable. writable -> Effect Unit
defaultUncork :: forall writable. writable -> Effect Unit
dispose :: forall a. Dispose a => a -> Effect Unit
uncork :: forall writable. Writable writable => writable -> Effect Unit
unpipe_ :: forall readable. Readable readable => readable -> Effect Unit
cancelWaitAfter_ :: forall t. IsTool t => t -> Effect Unit
clear_ :: forall d. IsDiagram d => IsDiagram d => d -> Effect Unit
clear_ :: forall m nodeData. IsModel (m nodeData) => m nodeData -> Effect Unit
clearAdornments_ :: forall p. IsPart p => p -> Effect Unit
clearHighlighteds_ :: forall d. IsDiagram d => IsDiagram d => d -> Effect Unit
cloneProtected_ :: forall m nodeData. IsModel (m nodeData) => m nodeData -> Effect Unit
collapseTree_ :: forall n. IsNode n => n -> Effect Unit
commit_ :: forall _l _n e _v. LayoutNetwork _l _n e _v => e -> Effect Unit
commit_ :: forall _l _n _e v. LayoutNetwork _l _n _e v => v -> Effect Unit
commitLayout_ :: forall l. IsLayout l => l -> Effect Unit
deleteArtificialVertexes_ :: forall _l n _e _v. LayoutNetwork _l n _e _v => n -> Effect Unit
deleteSelfEdges_ :: forall _l n _e _v. LayoutNetwork _l n _e _v => n -> Effect Unit
destroy :: forall a. GameObject a => a -> Effect Unit
destroy_ :: forall message. IncomingMessage message => message -> Effect Unit
doActivate_ :: forall t. IsTool t => t -> Effect Unit
doCancel_ :: forall t. IsTool t => t -> Effect Unit
doDeactivate_ :: forall t. IsTool t => t -> Effect Unit
doStart_ :: forall t. IsTool t => t -> Effect Unit
doStop_ :: forall t. IsTool t => t -> Effect Unit
endTransformFeedback :: forall c. IsWebGL2RenderingContext c => c -> Effect Unit
Usage: endTransformFeedback gl
void endTransformFeedback();
Documentation: WebGL 2.0 spec, section 3.7.15
ensureBounds_ :: forall d. IsDiagram d => IsDiagram d => d -> Effect Unit
ensureBounds_ :: forall p. IsPart p => p -> Effect Unit
expandTree_ :: forall n. IsNode n => n -> Effect Unit
ffilog :: forall a. a -> Effect Unit
finish :: forall c. IsWebGLRenderingContext c => c -> Effect Unit
Usage: finish gl
void finish();
Documentation: WebGL 1.0 spec, section 5.14.11
flush :: forall c. IsWebGLRenderingContext c => c -> Effect Unit
Usage: flush gl
void flush();
Documentation: WebGL 1.0 spec, section 5.14.11
focus_ :: forall d. IsDiagram d => IsDiagram d => d -> Effect Unit
invalidateLayout_ :: forall l. IsLayout l => l -> Effect Unit
pauseTransformFeedback :: forall c. IsWebGL2RenderingContext c => c -> Effect Unit
Usage: pauseTransformFeedback gl
void pauseTransformFeedback();
Documentation: WebGL 2.0 spec, section 3.7.15
pick :: forall a. Monoid a => Array a -> Effect a
postMessage :: forall msg. IsSendable msg => msg -> Effect Unit
sends a message to the main thread that spawned it.
postMessageToBoss :: forall toBoss. toBoss -> Effect Unit
preventDefault :: forall e. IsSyntheticEvent e => e -> Effect Unit
Prevents the default handling of the event by the browser. See also https://reactjs.org/docs/events.html
preventDefault :: forall a. IsEvent a => a -> Effect Unit
printLn :: forall a. a -> Effect Unit
Equal to print
in Python but wrapped in Effect monad.
rebuildItemElements_ :: forall p. IsPanel p => p -> Effect Unit
rebuildParts_ :: forall d. IsDiagram d => IsDiagram d => d -> Effect Unit
resumeTransformFeedback :: forall c. IsWebGL2RenderingContext c => c -> Effect Unit
Usage: resumeTransformFeedback gl
void resumeTransformFeedback();
Documentation: WebGL 2.0 spec, section 3.7.15
saveState :: forall s. GameDev s => s -> Effect Unit
sendMsg :: forall up. up -> Effect Unit
Internal binding for the postMessage
function
available in the global scope of web worker modules.
MDN
import Effect.Worker (Worker, sendMsg)
worker :: Worker String _
sendMsg "hello" worker
standardMouseOver_ :: forall t. IsTool t => t -> Effect Unit
standardMouseSelect_ :: forall t. IsTool t => t -> Effect Unit
standardMouseWheel_ :: forall t. IsTool t => t -> Effect Unit
standardPinchZoomMove_ :: forall t. IsTool t => t -> Effect Unit
standardPinchZoomStart_ :: forall t. IsTool t => t -> Effect Unit
stopImmediatePropagation :: forall a. IsEvent a => a -> Effect Unit
stopPropagation :: forall e. IsSyntheticEvent e => e -> Effect Unit
Prevents propagation of the event up the React DOM tree. See also https://reactjs.org/docs/events.html
stopPropagation :: forall a. IsEvent a => a -> Effect Unit
stopTool_ :: forall t. IsTool t => t -> Effect Unit
unmount :: forall w. Wrapper w => w -> Effect Unit
A method that unmounts the component. This can be used to simulate a component going through an unmount/mount lifecycle.
updateAdornments_ :: forall p. IsPart p => p -> Effect Unit
updateAllRelationshipsFromData_ :: forall d. IsDiagram d => IsDiagram d => d -> Effect Unit
updateParts_ :: forall l. IsLayout l => l -> Effect Unit
updateRelationshipsFromData_ :: forall p. IsPart p => p -> Effect Unit
zoomToFit_ :: forall d. IsDiagram d => IsDiagram d => d -> Effect Unit
void :: forall f a. Functor f => f a -> f Unit
The void
function is used to ignore the type wrapped by a
Functor
, replacing it with Unit
and keeping only the type
information provided by the type constructor itself.
void
is often useful when using do
notation to change the return type
of a monadic computation:
main = forE 1 10 \n -> void do
print n
print (n * n)
sequence1_ :: forall t f a. Foldable1 t => Apply f => t (f a) -> f Unit
Perform all of the effects in some data structure in the order
given by the Foldable1
instance, ignoring the final result.
sequence_ :: forall a f m. Applicative m => Foldable f => f (m a) -> m Unit
Perform all of the effects in some data structure in the order
given by the Foldable
instance, ignoring the final result.
For example:
sequence_ [ trace "Hello, ", trace " world!" ]
fold :: forall m. Monoid m => Array m -> m
head :: forall a. Partial => Array a -> a
Get the first element of a non-empty array.
Running time: O(1)
.
last :: forall a. Partial => Array a -> a
Get the last element of a non-empty array.
Running time: O(1)
.
debugShow :: forall m a. MonadEffect m => Show a => a -> m Unit
errorShow :: forall m a. MonadEffect m => Show a => a -> m Unit
infoShow :: forall m a. MonadEffect m => Show a => a -> m Unit
logShow :: forall m a. MonadEffect m => Show a => a -> m Unit
warnShow :: forall m a. MonadEffect m => Show a => a -> m Unit
put :: forall m s. MonadState s m => s -> m Unit
Set the state.
tell :: forall w m. MonadTell w m => w -> m Unit
parSequence_ :: forall a t m f. Parallel f m => Applicative f => Foldable t => t (m a) -> m Unit
concat :: forall buf m. MutableBuffer buf m => Array buf -> m buf
Concatenates a list of buffers.
discard :: forall a m. Monad m => a -> m Unit
Discards a value
expectError :: forall m t. MonadError Error m => m t -> m Unit
traceM :: forall m a. DebugWarning => Monad m => a -> m Unit
Log any PureScript value to the console and return the unit value of the
Monad m
.
a_ :: forall html a. Html html => Array (html a) -> html a
Defines a hyperlink [No Attributes]
a_ :: forall html a. Html html => Array (html a) -> html a
Creates a hyperlink element [No Attributes]
abbr_ :: forall html a. Html html => Array (html a) -> html a
Defines an abbreviation [No Attributes]
address_ :: forall html a. Html html => Array (html a) -> html a
Defines contact information for the author/owner of a document [No Attributes]
altGlyph_ :: forall html a. Html html => Array (html a) -> html a
Defines an alternative representation of a glyph in a font [No Attributes]
altGlyphDef_ :: forall html a. Html html => Array (html a) -> html a
Defines a set of glyph substitutions for an altGlyph element [No Attributes]
altGlyphItem_ :: forall html a. Html html => Array (html a) -> html a
Defines a substitution for a specific glyph in an altGlyphDef element [No Attributes]
article_ :: forall html a. Html html => Array (html a) -> html a
Defines self-contained content, like blog posts or news articles [No Attributes]
aside_ :: forall html a. Html html => Array (html a) -> html a
Defines content aside from the content it is placed in [No Attributes]
audio_ :: forall html a. Html html => Array (html a) -> html a
Defines sound content, like music or other audio streams [No Attributes]
b_ :: forall html a. Html html => Array (html a) -> html a
Defines bold text [No Attributes]
bdi_ :: forall html a. Html html => Array (html a) -> html a
Defines text directionality for its children [No Attributes]
bdo_ :: forall html a. Html html => Array (html a) -> html a
Defines text directionality [No Attributes]
blockquote_ :: forall html a. Html html => Array (html a) -> html a
Defines a section that is quoted from another source [No Attributes]
body_ :: forall html a. Html html => Array (html a) -> html a
Defines the document's body [No Attributes]
button_ :: forall html a. Html html => Array (html a) -> html a
Defines a clickable button [No Attributes]
canvas_ :: forall html a. Html html => Array (html a) -> html a
Defines an area that can be used to draw graphics using JavaScript [No Attributes]
caption_ :: forall html a. Html html => Array (html a) -> html a
Defines a table caption [No Attributes]
cite_ :: forall html a. Html html => Array (html a) -> html a
Defines the title of a work [No Attributes]
clipPath_ :: forall html a. Html html => Array (html a) -> html a
Defines a clipping path for an SVG element [No Attributes]
code_ :: forall html a. Html html => Array (html a) -> html a
Defines a piece of computer code [No Attributes]
colgroup_ :: forall html a. Html html => Array (html a) -> html a
Defines attributes for a group of table columns [No Attributes]
colorProfile_ :: forall html a. Html html => Array (html a) -> html a
Defines a color profile for an SVG document [No Attributes]
data__ :: forall html a. Html html => Array (html a) -> html a
Defines machine-readable data [No Attributes]
datalist_ :: forall html a. Html html => Array (html a) -> html a
Defines a list of pre-defined options for input controls [No Attributes]
dd_ :: forall html a. Html html => Array (html a) -> html a
Defines a description/value of a term in a description list [No Attributes]
defs_ :: forall html a. Html html => Array (html a) -> html a
Defines a set of reusable SVG elements [No Attributes]
del_ :: forall html a. Html html => Array (html a) -> html a
Defines text that has been deleted from a document [No Attributes]
desc_ :: forall html a. Html html => Array (html a) -> html a
Defines a description of an SVG element [No Attributes]
details_ :: forall html a. Html html => Array (html a) -> html a
Defines additional details that the user can view or hide [No Attributes]
dfn_ :: forall html a. Html html => Array (html a) -> html a
Defines a definition term [No Attributes]
dialog_ :: forall html a. Html html => Array (html a) -> html a
Defines a dialog box or window [No Attributes]
div_ :: forall html a. Html html => Array (html a) -> html a
Defines a section of a document [No Attributes]
dl_ :: forall html a. Html html => Array (html a) -> html a
Defines a description list [No Attributes]
dt_ :: forall html a. Html html => Array (html a) -> html a
Defines a term in a description list [No Attributes]
em_ :: forall html a. Html html => Array (html a) -> html a
Defines emphasized text [No Attributes]
feMerge_ :: forall html a. Html html => Array (html a) -> html a
Merges multiple input images together [No Attributes]
fieldset_ :: forall html a. Html html => Array (html a) -> html a
Groups related form elements [No Attributes]
figcaption_ :: forall html a. Html html => Array (html a) -> html a
Defines a caption for a <figure> element [No Attributes]
figure_ :: forall html a. Html html => Array (html a) -> html a
Defines self-contained content, like images or diagrams [No Attributes]
filter_ :: forall html a. Html html => Array (html a) -> html a
Defines a filter effect [No Attributes]
footer_ :: forall html a. Html html => Array (html a) -> html a
Defines a footer for a document or section [No Attributes]
foreignObject_ :: forall html a. Html html => Array (html a) -> html a
Inserts a foreign object into an SVG document [No Attributes]
form_ :: forall html a. Html html => Array (html a) -> html a
Defines an HTML form for user input [No Attributes]
g_ :: forall html a. Html html => Array (html a) -> html a
Creates a group of SVG elements [No Attributes]
glyph_ :: forall html a. Html html => Array (html a) -> html a
Defines a single glyph in an SVG font [No Attributes]
h1_ :: forall html a. Html html => Array (html a) -> html a
Defines a heading level 1 [No Attributes]
h2_ :: forall html a. Html html => Array (html a) -> html a
Defines a heading level 2 [No Attributes]
h3_ :: forall html a. Html html => Array (html a) -> html a
Defines a heading level 3 [No Attributes]
h4_ :: forall html a. Html html => Array (html a) -> html a
Defines a heading level 4 [No Attributes]
h5_ :: forall html a. Html html => Array (html a) -> html a
Defines a heading level 5 [No Attributes]
h6_ :: forall html a. Html html => Array (html a) -> html a
Defines a heading level 6 [No Attributes]
hatch_ :: forall html a. Html html => Array (html a) -> html a
Defines a hatching pattern [No Attributes]