Search results

assure :: forall a e g f. ErrorControl f g e => Monad f => g a -> (a -> Maybe e) -> f a
P purescript-errorcontrol M Error.Control
bind :: forall m a b. Bind m => m a -> (a -> m b) -> m b
P purescript-prelude M Control.Bind
discard :: forall a f b. Discard a => Bind f => f a -> (a -> f b) -> f b
P purescript-prelude M Control.Bind
bind' :: forall v1 v0 m c. HasBind c m => ObjectOf c v0 => ObjectOf c (m v1) => Restrictable Function c => m v0 -> (v0 -> (m v1)) -> m v1
P purescript-subcategory M Control.Subcategory.Functor.HasBind
bind :: forall c b a. HasChain a => a b -> (b -> a c) -> a c

A version of chain with the arguments flipped. This is provided only to support desugaring do notation. It is not recommended to use explicitly.

P purescript-neon M Neon.Helper
fairConjunction :: forall b a m. MonadLogic m => m a -> (a -> m b) -> m b
P purescript-logic M Control.Monad.Logic.Class
hummingbird :: forall m b a. Bind m => m a -> (a -> m b) -> m b

H combinator - hummingbird

BW(BC)

Λ a b c (a → b → a → c) → a → b → c

λ f x y . f x y x

P purescript-birds M Aviary.Birds
when :: forall b a m. MonadLogic m => m a -> (a -> m b) -> m b
P purescript-logic M Control.Monad.Logic.Class
catchError :: forall e m a. MonadError e m => m a -> (e -> m a) -> m a
P purescript-transformers M Control.Monad.Error.Class
controlError :: forall f g e a. ErrorControl f g e => f a -> (e -> g a) -> g a
P purescript-errorcontrol M Error.Control
mapFlipped :: forall f a b. Functor f => f a -> (a -> b) -> f b

mapFlipped is map with its arguments reversed. For example:

[1, 2, 3] <#> \n -> n * n
P purescript-prelude M Data.Functor
flippedMap :: forall f a b. Functor f => f a -> (a -> b) -> f b
P purescript-signal M Signal
delay :: forall m a b. Delay m => a -> (a -> m b) -> m b
P purescript-ffi-simple M FFI.Simple.Functions
fromMaybeS :: forall a f. Selective f => f a -> f (Maybe a) -> f a
P purescript-selective M Control.Selective
fromMaybeS :: forall @f @a. Select f => f a -> f (Maybe a) -> f a

If the second action is Nothing, run and return the first

P purescript-selective-functors M Control.Select
cmapFlipped :: forall a b f. Contravariant f => f a -> (b -> a) -> f b

cmapFlipped is cmap with its arguments reversed.

P purescript-contravariant M Data.Functor.Contravariant
intercept :: forall a e g f. ErrorControl f g e => f a -> (e -> a) -> g a
P purescript-errorcontrol M Error.Control
applyFlipped :: forall a b. a -> (a -> b) -> b

Applies an argument to a function. This is primarily used as the (#) operator, which allows parentheses to be omitted in some cases, or as a natural way to apply a value to a chain of composed functions.

P purescript-prelude M Data.Function
applySecond :: forall a b f. Apply f => f a -> f b -> f b

Combine two effectful actions, keeping only the result of the second.

P purescript-prelude M Control.Apply
voidLeft :: forall f a b. Functor f => f a -> b -> f b

A version of voidRight with its arguments flipped.

P purescript-prelude M Data.Functor
fromMaybe' :: forall a. Maybe a -> a -> a

An infix form of fromMaybe with arguments flipped.

P purescript-errors M Control.Error.Util
mulNat :: forall proxy a b c. ProductNat a b c => proxy a -> proxy b -> proxy c
P purescript-typelevel-peano M Type.Data.Peano.Nat.Definition
plus :: forall proxy a b c. SumInt a b c => proxy a -> proxy b -> proxy c
P purescript-typelevel-peano M Type.Data.Peano.Int.Definition
plusNat :: forall proxy a b c. SumNat a b c => proxy a -> proxy b -> proxy c
P purescript-typelevel-peano M Type.Data.Peano.Nat.Definition
powNat :: forall proxy a b c. ExponentiationNat a b c => proxy a -> proxy b -> proxy c
> powNat d2 d3
8 -- : NProxy D8

a raised to the power of b a^b = c

P purescript-typelevel-peano M Type.Data.Peano.Nat.Definition
prod :: forall proxy a b c. ProductInt a b c => proxy a -> proxy b -> proxy c
P purescript-typelevel-peano M Type.Data.Peano.Int.Definition
sampleOnLeft_ :: forall event a b. IsEvent event => event a -> event b -> event b
P purescript-hyrule M FRP.Event.Class
divides :: forall a. Divisible a => a -> a -> Maybe a
P purescript-sparse-polynomials M Data.Sparse.Polynomial
downcast :: forall ctor from to. ctor -> from -> Maybe to

Attempt to cast to a type given a constructor for it

P purescript-ffi-simple M FFI.Simple.Objects
applySecond :: forall v1 v0 f c. HasApply c f => HasConst c => HasIdentity c => HasMap c f => ObjectOf c v0 => ObjectOf c v1 => ObjectOf c (c v1 v1) => ObjectOf c (c v0 (c v1 v1)) => ObjectOf c (c (c v1 v1) (c v0 (c v1 v1))) => f v0 -> f v1 -> f v1
P purescript-subcategory M Control.Subcategory.Functor.HasApply
concat :: forall xs ys zs lproxy. Concat xs ys zs => lproxy xs -> lproxy ys -> lproxy zs
P purescript-typelevel-lists M Type.Data.List
downcast :: forall ctor from to. ctor -> from -> Maybe to

Attempt to cast to a type given a constructor for it

P purescript-dom-simple M DOM.Simple.Event
drop :: forall n xs ys lproxy iproxy. Drop n xs ys => iproxy n -> lproxy xs -> lproxy ys
P purescript-typelevel-lists M Type.Data.List
lookup :: forall c k r. Lookup c k r => c -> k -> Maybe r

Given some type and a key on that type, extract some value that corresponds to that key.

P purescript-httpure M HTTPure.Lookup
lookup :: forall c k r. Lookup c k r => c -> k -> Maybe r

Given some type and a key on that type, extract some value that corresponds to that key.

P purescript-httpurple M HTTPurple.Lookup
map :: forall f xs ys fproxy kproxy lproxy. Map f xs ys => fproxy f -> kproxy xs -> lproxy ys
P purescript-typelevel-lists M Type.Data.List
take :: forall n xs ys lproxy iproxy. Take n xs ys => iproxy n -> lproxy xs -> lproxy ys
P purescript-typelevel-lists M Type.Data.List
zip :: forall x y z lproxy. Zip x y z => lproxy x -> lproxy y -> lproxy z
P purescript-typelevel-lists M Type.Data.List
getOrAlt :: forall v s r' r l h g f. Alternative h => Cons s v r' r => RowToList r l => RGetOrAlt f g s l r => g s -> f r -> h v
P purescript-struct M Data.Struct.GetOrAlt.GetOrAlt
max :: forall a. PartialOrd a => a -> a -> Maybe a
P purescript-partial-order M Data.Ord.Partial
min :: forall a. PartialOrd a => a -> a -> Maybe a
P purescript-partial-order M Data.Ord.Partial
pMax :: forall a. PartialOrd a => a -> a -> Maybe a
P purescript-higher-order M Data.PartialOrd
pMin :: forall a. PartialOrd a => a -> a -> Maybe a
P purescript-higher-order M Data.PartialOrd
rsingleton :: forall f g s v r. RSingleton f g s => Cons s v () r => Lacks s () => g s -> v -> f r
P purescript-struct M Data.Struct.Singleton.RSingleton
singleton :: forall v s r g f. Cons s v () r => Lacks s () => RSingleton f g s => g s -> v -> f r
P purescript-struct M Data.Struct.Singleton
_call :: forall b a. a -> (a -> b) -> b
P purescript-neon M Neon.Operator
after :: forall k f. Eq k => Foldable f => k -> f k -> Maybe k
P purescript-causal-graphs M Data.Graph.Causal.Utility
always_ :: forall a i. i -> a -> Maybe i
P purescript-spork M Spork.Html.Events
before :: forall k f. Eq k => Foldable f => k -> f k -> Maybe k
P purescript-causal-graphs M Data.Graph.Causal.Utility
bind :: forall a. Semigroup a => a -> (a -> a) -> a
P purescript-qualified-do M QualifiedDo.Semigroup