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]