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.

P purescript-wags M WAGS.Interpret
sequenceEffects :: Array (Effect Unit) -> Effect Unit
P purescript-specular M Specular.Internal.Effect
resolve :: forall m. Monad m => Foldable m => m (Effect Unit) -> Effect Unit
P purescript-assert-multiple M Test.Assert.Multiple
debugShow :: forall a. Show a => a -> Effect Unit

Write an debug value to the console, using its Show instance to produce a String.

P purescript-console M Effect.Console
errorShow :: forall a. Show a => a -> Effect Unit

Write an error value to the console, using its Show instance to produce a String.

P purescript-console M Effect.Console
infoShow :: forall a. Show a => a -> Effect Unit

Write an info value to the console, using its Show instance to produce a String.

P purescript-console M Effect.Console
logShow :: forall a. Show a => a -> Effect Unit

Write a value to the console, using its Show instance to produce a String.

P purescript-console M Effect.Console
warnShow :: forall a. Show a => a -> Effect Unit

Write an warning value to the console, using its Show instance to produce a String.

P purescript-console M Effect.Console
eval :: forall a. Eval a => a -> Effect Unit
P purescript-psci-support M PSCI.Support
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.

P purescript-quickcheck M Test.QuickCheck
log :: forall a. a -> Effect Unit
P purescript-dom-simple M DOM.Simple.Console
preventDefault :: forall e. IsEvent e => e -> Effect Unit

Prevents the default action from being executed after propagation

P purescript-dom-simple M DOM.Simple.Event
propagationStopped :: forall e. IsEvent e => e -> Effect Unit

Whether propagation has been stopped

P purescript-dom-simple M DOM.Simple.Event
remove :: forall n. IsChild n => n -> Effect Unit

Unhook the current node from its parent

P purescript-dom-simple M DOM.Simple.Child
stopImmediatePropagation :: forall e. IsEvent e => e -> Effect Unit

Stops immediate propagation of the event

P purescript-dom-simple M DOM.Simple.Event
stopPropagation :: forall e. IsEvent e => e -> Effect Unit

Stops propagation of the event

P purescript-dom-simple M DOM.Simple.Event
cork :: forall writable. Writable writable => writable -> Effect Unit
P purescript-idiomatic-node-stream M Node.Stream.Writable
defaultCork :: forall writable. writable -> Effect Unit
P purescript-idiomatic-node-stream M Node.Stream.Writable
defaultUncork :: forall writable. writable -> Effect Unit
P purescript-idiomatic-node-stream M Node.Stream.Writable
dispose :: forall a. Dispose a => a -> Effect Unit
P purescript-xterm M XTerm.Disposable
uncork :: forall writable. Writable writable => writable -> Effect Unit
P purescript-idiomatic-node-stream M Node.Stream.Writable
unpipe_ :: forall readable. Readable readable => readable -> Effect Unit
P purescript-idiomatic-node-stream M Node.Stream.Readable
cancelWaitAfter_ :: forall t. IsTool t => t -> Effect Unit
P purescript-gojs M GoJS.Tool.Methods
clear_ :: forall d. IsDiagram d => IsDiagram d => d -> Effect Unit
P purescript-gojs M GoJS.Diagram.Methods
clear_ :: forall m nodeData. IsModel (m nodeData) => m nodeData -> Effect Unit
P purescript-gojs M GoJS.Model.Methods
clearAdornments_ :: forall p. IsPart p => p -> Effect Unit
P purescript-gojs M GoJS.GraphObject.Panel.Part.Methods
clearHighlighteds_ :: forall d. IsDiagram d => IsDiagram d => d -> Effect Unit
P purescript-gojs M GoJS.Diagram.Methods
cloneProtected_ :: forall m nodeData. IsModel (m nodeData) => m nodeData -> Effect Unit
P purescript-gojs M GoJS.Model.Methods
collapseTree_ :: forall n. IsNode n => n -> Effect Unit
P purescript-gojs M GoJS.GraphObject.Panel.Part.Node.Methods
commit_ :: forall _l _n e _v. LayoutNetwork _l _n e _v => e -> Effect Unit
P purescript-gojs M GoJS.Layout.LayoutEdge.Methods
commit_ :: forall _l _n _e v. LayoutNetwork _l _n _e v => v -> Effect Unit
P purescript-gojs M GoJS.Layout.LayoutVertex.Methods
commitLayout_ :: forall l. IsLayout l => l -> Effect Unit
P purescript-gojs M GoJS.Diagram.Layout.Methods
deleteArtificialVertexes_ :: forall _l n _e _v. LayoutNetwork _l n _e _v => n -> Effect Unit
P purescript-gojs M GoJS.Layout.LayoutNetwork.Methods
deleteSelfEdges_ :: forall _l n _e _v. LayoutNetwork _l n _e _v => n -> Effect Unit
P purescript-gojs M GoJS.Layout.LayoutNetwork.Methods
destroy :: forall a. GameObject a => a -> Effect Unit
P purescript-phaser M Graphics.Phaser.GameObject
destroy_ :: forall message. IncomingMessage message => message -> Effect Unit
P purescript-idiomatic-node-http M Node.Http.IncomingMessage
doActivate_ :: forall t. IsTool t => t -> Effect Unit
P purescript-gojs M GoJS.Tool.Methods
doCancel_ :: forall t. IsTool t => t -> Effect Unit
P purescript-gojs M GoJS.Tool.Methods
doDeactivate_ :: forall t. IsTool t => t -> Effect Unit
P purescript-gojs M GoJS.Tool.Methods
doStart_ :: forall t. IsTool t => t -> Effect Unit
P purescript-gojs M GoJS.Tool.Methods
doStop_ :: forall t. IsTool t => t -> Effect Unit
P purescript-gojs M GoJS.Tool.Methods
endTransformFeedback :: forall c. IsWebGL2RenderingContext c => c -> Effect Unit

Usage: endTransformFeedback gl

void endTransformFeedback();

Documentation: WebGL 2.0 spec, section 3.7.15

P purescript-webgl2-raw M WebGL.Raw.WebGL2.WebGLTransformFeedback
ensureBounds_ :: forall d. IsDiagram d => IsDiagram d => d -> Effect Unit
P purescript-gojs M GoJS.Diagram.Methods
ensureBounds_ :: forall p. IsPart p => p -> Effect Unit
P purescript-gojs M GoJS.GraphObject.Panel.Part.Methods
expandTree_ :: forall n. IsNode n => n -> Effect Unit
P purescript-gojs M GoJS.GraphObject.Panel.Part.Node.Methods
ffilog :: forall a. a -> Effect Unit
P purescript-gojs M GoJS.Debug
finish :: forall c. IsWebGLRenderingContext c => c -> Effect Unit

Usage: finish gl

void finish();

Documentation: WebGL 1.0 spec, section 5.14.11

P purescript-webgl2-raw M WebGL.Raw.WebGL1.WebGLRenderingContext
flush :: forall c. IsWebGLRenderingContext c => c -> Effect Unit

Usage: flush gl

void flush();

Documentation: WebGL 1.0 spec, section 5.14.11

P purescript-webgl2-raw M WebGL.Raw.WebGL1.WebGLRenderingContext
focus_ :: forall d. IsDiagram d => IsDiagram d => d -> Effect Unit
P purescript-gojs M GoJS.Diagram.Methods
invalidateLayout_ :: forall l. IsLayout l => l -> Effect Unit
P purescript-gojs M GoJS.Diagram.Layout.Methods
pauseTransformFeedback :: forall c. IsWebGL2RenderingContext c => c -> Effect Unit

Usage: pauseTransformFeedback gl

void pauseTransformFeedback();

Documentation: WebGL 2.0 spec, section 3.7.15

P purescript-webgl2-raw M WebGL.Raw.WebGL2.WebGLTransformFeedback
postMessage :: forall msg. IsSendable msg => msg -> Effect Unit

sends a message to the main thread that spawned it.

P purescript-web-workers M Web.Worker.DedicatedWorkerGlobalScope
postMessageToBoss :: forall toBoss. toBoss -> Effect Unit
P purescript-web-proletarian M Yoga.WebWorker
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

P purescript-elmish-html M Elmish.HTML.Events.Methods
preventDefault :: forall a. IsEvent a => a -> Effect Unit
P purescript-weber M Weber.Event
printLn :: forall a. a -> Effect Unit

Equal to print in Python but wrapped in Effect monad.

P purescript-show-python M Python.IO.Unsafe
rebuildItemElements_ :: forall p. IsPanel p => p -> Effect Unit
P purescript-gojs M GoJS.GraphObject.Panel.Methods
rebuildParts_ :: forall d. IsDiagram d => IsDiagram d => d -> Effect Unit
P purescript-gojs M GoJS.Diagram.Methods
resumeTransformFeedback :: forall c. IsWebGL2RenderingContext c => c -> Effect Unit

Usage: resumeTransformFeedback gl

void resumeTransformFeedback();

Documentation: WebGL 2.0 spec, section 3.7.15

P purescript-webgl2-raw M WebGL.Raw.WebGL2.WebGLTransformFeedback
saveState :: forall s. GameDev s => s -> Effect Unit
P purescript-emo8 M Emo8.GameDev
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
P purescript-workly M Effect.Worker.Child
standardMouseOver_ :: forall t. IsTool t => t -> Effect Unit
P purescript-gojs M GoJS.Tool.Methods
standardMouseSelect_ :: forall t. IsTool t => t -> Effect Unit
P purescript-gojs M GoJS.Tool.Methods
standardMouseWheel_ :: forall t. IsTool t => t -> Effect Unit
P purescript-gojs M GoJS.Tool.Methods
standardPinchZoomMove_ :: forall t. IsTool t => t -> Effect Unit
P purescript-gojs M GoJS.Tool.Methods
standardPinchZoomStart_ :: forall t. IsTool t => t -> Effect Unit
P purescript-gojs M GoJS.Tool.Methods
stopImmediatePropagation :: forall a. IsEvent a => a -> Effect Unit
P purescript-weber M Weber.Event
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

P purescript-elmish-html M Elmish.HTML.Events.Methods
stopPropagation :: forall a. IsEvent a => a -> Effect Unit
P purescript-weber M Weber.Event
stopTool_ :: forall t. IsTool t => t -> Effect Unit
P purescript-gojs M GoJS.Tool.Methods
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.

P purescript-react-enzyme M Enzyme.Wrapper
updateAdornments_ :: forall p. IsPart p => p -> Effect Unit
P purescript-gojs M GoJS.GraphObject.Panel.Part.Methods
updateAllRelationshipsFromData_ :: forall d. IsDiagram d => IsDiagram d => d -> Effect Unit
P purescript-gojs M GoJS.Diagram.Methods
updateParts_ :: forall l. IsLayout l => l -> Effect Unit
P purescript-gojs M GoJS.Diagram.Layout.Methods
updateRelationshipsFromData_ :: forall p. IsPart p => p -> Effect Unit
P purescript-gojs M GoJS.GraphObject.Panel.Part.Methods
zoomToFit_ :: forall d. IsDiagram d => IsDiagram d => d -> Effect Unit
P purescript-gojs M GoJS.Diagram.Methods
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)
P purescript-prelude M Data.Functor
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.

P purescript-foldable-traversable M Data.Semigroup.Foldable
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!" ]
P purescript-foldable-traversable M Data.Foldable
fold :: forall m. Monoid m => Array m -> m
P purescript-arrays M Data.Array
head :: forall a. Partial => Array a -> a

Get the first element of a non-empty array.

Running time: O(1).

P purescript-arrays M Data.Array.Partial
last :: forall a. Partial => Array a -> a

Get the last element of a non-empty array.

Running time: O(1).

P purescript-arrays M Data.Array.Partial
debugShow :: forall m a. MonadEffect m => Show a => a -> m Unit
P purescript-console M Effect.Class.Console
errorShow :: forall m a. MonadEffect m => Show a => a -> m Unit
P purescript-console M Effect.Class.Console
infoShow :: forall m a. MonadEffect m => Show a => a -> m Unit
P purescript-console M Effect.Class.Console
logShow :: forall m a. MonadEffect m => Show a => a -> m Unit
P purescript-console M Effect.Class.Console
warnShow :: forall m a. MonadEffect m => Show a => a -> m Unit
P purescript-console M Effect.Class.Console
put :: forall m s. MonadState s m => s -> m Unit

Set the state.

P purescript-transformers M Control.Monad.State.Class
tell :: forall w m. MonadTell w m => w -> m Unit
P purescript-transformers M Control.Monad.Writer.Class
parSequence_ :: forall a t m f. Parallel f m => Applicative f => Foldable t => t (m a) -> m Unit
P purescript-parallel M Control.Parallel
concat :: forall buf m. MutableBuffer buf m => Array buf -> m buf

Concatenates a list of buffers.

P purescript-node-buffer M Node.Buffer.Class
discard :: forall a m. Monad m => a -> m Unit

Discards a value

P purescript-pipes M Pipes
expectError :: forall m t. MonadError Error m => m t -> m Unit
P purescript-spec M Test.Spec.Assertions
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.

P purescript-debug M Debug
a_ :: forall html a. Html html => Array (html a) -> html a

Defines a hyperlink [No Attributes]

P purescript-chameleon M Chameleon.HTML.Elements
a_ :: forall html a. Html html => Array (html a) -> html a

Creates a hyperlink element [No Attributes]

P purescript-chameleon M Chameleon.SVG.Elements
abbr_ :: forall html a. Html html => Array (html a) -> html a

Defines an abbreviation [No Attributes]

P purescript-chameleon M Chameleon.HTML.Elements
address_ :: forall html a. Html html => Array (html a) -> html a

Defines contact information for the author/owner of a document [No Attributes]

P purescript-chameleon M Chameleon.HTML.Elements
altGlyph_ :: forall html a. Html html => Array (html a) -> html a

Defines an alternative representation of a glyph in a font [No Attributes]

P purescript-chameleon M Chameleon.SVG.Elements
altGlyphDef_ :: forall html a. Html html => Array (html a) -> html a

Defines a set of glyph substitutions for an altGlyph element [No Attributes]

P purescript-chameleon M Chameleon.SVG.Elements