Search results
useCleaner :: forall m. MonadHooks m => Effect Unit -> m Unit
Add a cleaner
onCleanup :: forall m. MonadCleanup m => Effect Unit -> m Unit
Add a cleanup action.
useCleaner :: forall m. MonadHooks m => Effect Unit -> m Unit
Add a cleaner
liftEffect :: forall m a. MonadEffect m => Effect a -> m a
pull :: forall a m. MonadEffect m => Effect a -> m a
read :: forall g a. RWLockGuard g => g a -> Aff a
quickCheck :: forall p. Testable p => p -> Aff Unit
Runs a Testable with a random seed and 100 inputs.
awaitFinished :: forall s a. Write s a => s -> Aff Unit
awaitReadableOrClosed :: forall s a. Read s a => s -> Aff Unit
awaitWritableOrClosed :: forall s a. Write s a => s -> Aff Unit
abort :: forall tx. IDBTransaction tx => tx -> Aff Unit
Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted.
cancel :: forall a. Parent a => a -> Aff Unit
clear :: forall store. IDBObjectStore store => store -> Aff Unit
Deletes all records in store.
close :: forall db. IDBDatabase db => db -> Aff Unit
Closes the connection once all running transactions have finished.
closePort :: forall a. LateNode a => a -> Aff Unit
delay :: forall d. Duration d => d -> Aff Unit
delete :: forall cursor. IDBCursor cursor => cursor -> Aff Unit
Delete the record pointed at by the cursor with a new value.
key :: forall cursor. IDBConcreteCursor cursor => cursor -> Aff Key
Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
primaryKey :: forall cursor. IDBConcreteCursor cursor => cursor -> Aff Key
Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
release :: forall g a. RWLockGuard g => g a -> Aff Unit
pure :: forall f a. Applicative f => a -> f a
forever :: forall m a b. MonadRec m => m a -> m b
forever runs an action indefinitely, using the MonadRec instance to
ensure constant stack usage.
For example:
main = forever $ trace "Hello, World!"
singleton :: forall f a. Unfoldable1 f => a -> f a
Contain a single value. For example:
singleton "foo" == (NEL.singleton "foo" :: NEL.NonEmptyList String)
proof :: forall a b p. TypeEquals a b => p a -> p b
elements :: forall m f a. MonadGen m => Foldable1 f => f a -> m a
Creates a generator that outputs a value chosen from a selection with uniform probability.
unsafePerformEffect :: forall a. Effect a -> a
Run an effectful computation.
Note: use of this function can result in arbitrary side-effects.
downFrom :: forall a u. Enum a => Unfoldable u => a -> u a
Produces all predecessors of an Enum value, excluding the start value.
downFromIncluding :: forall a u. Enum a => Unfoldable1 u => a -> u a
Produces all predecessors of an Enum value, including the start value.
downFromIncluding top will return all values in an Enum, in reverse
order.
upFrom :: forall a u. Enum a => Unfoldable u => a -> u a
Produces all successors of an Enum value, excluding the start value.
upFromIncluding :: forall a u. Enum a => Unfoldable1 u => a -> u a
Produces all successors of an Enum value, including the start value.
upFromIncluding bottom will return all values in an Enum.
coerce :: forall f a b. Contravariant f => Functor f => f a -> f b
throwError :: forall e m a. MonadThrow e m => e -> m a
inj :: forall f g a. Inject f g => f a -> g a
join :: forall f m a. MonadFork f m => f a -> m a
uninterruptible :: forall e f m a. MonadBracket e f m => m a -> m a
cleared :: forall f a b. Filterable f => f a -> f b
Filter out all values.
aread :: forall s r m. Refer s r => MonadEffect m => r -> m s
fread :: forall m r s. MonadEffect m => Refer s r => r -> m s
spyM :: forall m a. Warn (Text "Debug function usage") => Monad m => m a -> m a
liftBase :: forall b m a. MonadBase b m => b a -> m a
folded :: forall event a. IsEvent event => Monoid a => event a -> event a
Combine subsequent events using a Monoid.
length :: forall sproxy proxy a b. Length a b => sproxy a -> proxy b
parseInt :: forall sproxy proxy sym a. ParseInt sym a => sproxy sym -> proxy a
parse Int a Value-Level
parseInt (Proxy :: _ "-1337") ~> N1337
parseInt (SProxy :: _ "-1337") ~> N1337
-- N1137 would be type alias for Neg (Succ^1337 Z)
parseNat :: forall sproxy proxy sym a. ParseNat sym a => sproxy sym -> proxy a
value-level parse of number
parseNat (Proxy "10") ~> D10
parseNat (SProxy "10") ~> D10
lambek :: forall t f. Recursive t f => Corecursive t f => t -> f t
project :: forall t f. Recursive t f => t -> f t
folded :: forall a event. IsEvent event => Monoid a => event a -> event a
Combine subsequent events using a Monoid.
init :: forall xs ys lproxy. Init xs ys => lproxy xs -> lproxy ys
length :: forall xs r lproxy iproxy. Length xs r => lproxy xs -> iproxy r
localEffect :: forall a. Effect a -> a