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
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
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
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
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
destroyImpl :: forall a. a -> Effect Unit
P purescript-phaser M Graphics.Phaser.GameObject
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
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
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. msg -> Effect Unit
P purescript-web-workers M Web.Worker.GlobalScope
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
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
stopImmediatePropagation :: forall a. IsEvent a => a -> Effect Unit
P purescript-weber M Weber.Event
stopPropagation :: forall a. IsEvent a => a -> Effect Unit
P purescript-weber M Weber.Event
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
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
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
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
put :: forall m s. MonadState s m => s -> m Unit

Set the state.

P purescript-transformers M Control.Monad.State.Class
tell :: forall m w. MonadTell w m => w -> m Unit
P purescript-transformers M Control.Monad.Writer.Class
parSequence_ :: forall a t m f. Parallel f m => 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
concat :: forall buf m. Array buf -> m buf
P purescript-node-buffer M Node.Buffer.Internal
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
removeAllListeners_ :: forall emitter. EventEmitter emitter => emitter -> Effect emitter
P purescript-idiomatic-node-events M Node.Events.EventEmitter