Search results

fromMaybe :: forall a. a -> Maybe a -> a

Takes a default value, and a Maybe value. If the Maybe value is Nothing the default value is returned, otherwise the value inside the Just is returned.

fromMaybe x Nothing == x
fromMaybe x (Just y) == y
P purescript-maybe M Data.Maybe
withDefault :: forall a. a -> Maybe a -> a

If the given value is Nothing, return the default. Otherwise return the value.

withDefault 2 Nothing -- 2
withDefault 2 (Just 1) -- 1
P purescript-neon M Neon.Helper
intercalate :: forall f m. Foldable f => Monoid m => m -> f m -> m

Fold a data structure, accumulating values in some Monoid, combining adjacent elements using the specified separator.

For example:

> intercalate ", " ["Lorem", "ipsum", "dolor"]
= "Lorem, ipsum, dolor"

> intercalate "*" ["a", "b", "c"]
= "a*b*c"

> intercalate [1] [[2, 3], [4, 5], [6, 7]]
= [2, 3, 1, 4, 5, 1, 6, 7]
P purescript-foldable-traversable M Data.Foldable
intercalate :: forall f m. Foldable1 f => Semigroup m => m -> f m -> m

Fold a data structure using a Semigroup instance, combining adjacent elements using the specified separator.

P purescript-foldable-traversable M Data.Semigroup.Foldable
surround :: forall f m. Foldable f => Semigroup m => m -> f m -> m

fold but with each element surrounded by some fixed value.

For example:

> surround "*" []
= "*"

> surround "*" ["1"]
= "*1*"

> surround "*" ["1", "2"]
= "*1*2*"

> surround "*" ["1", "2", "3"]
= "*1*2*3*"
P purescript-foldable-traversable M Data.Foldable
consMax :: forall a f. Foldable f => Ord a => a -> f a -> a
P purescript-liminal M Data.Geometry.BoundingBox
consMin :: forall a f. Foldable f => Ord a => a -> f a -> a
P purescript-liminal M Data.Geometry.BoundingBox
peek :: forall s w a. ComonadStore s w => s -> w a -> a
P purescript-transformers M Control.Comonad.Store.Class
track :: forall t w a. ComonadTraced t w => t -> w a -> a
P purescript-transformers M Control.Comonad.Traced.Class
buildLeaf :: forall e f p v. ElementBuilder e f p v => e -> f p -> v
P purescript-concur-core M Concur.Core.ElementBuilder
add :: forall a. Semiring a => a -> a -> a
P purescript-prelude M Data.Semiring
append :: forall a. Semigroup a => a -> a -> a
P purescript-prelude M Data.Semigroup
conj :: forall a. HeytingAlgebra a => a -> a -> a
P purescript-prelude M Data.HeytingAlgebra
const :: forall a b. a -> b -> a

Returns its first argument and ignores its second.

const 1 "hello" = 1

It can also be thought of as creating a function that ignores its argument:

const 1 = \_ -> 1
P purescript-prelude M Data.Function
disj :: forall a. HeytingAlgebra a => a -> a -> a
P purescript-prelude M Data.HeytingAlgebra
div :: forall a. EuclideanRing a => a -> a -> a
P purescript-prelude M Data.EuclideanRing
gcd :: forall a. Eq a => EuclideanRing a => a -> a -> a

The greatest common divisor of two values.

P purescript-prelude M Data.EuclideanRing
genericAdd :: forall a rep. Generic a rep => GenericSemiring rep => a -> a -> a

A Generic implementation of the add member from the Semiring type class.

P purescript-prelude M Data.Semiring.Generic
genericAdd' :: forall a. GenericSemiring a => a -> a -> a
P purescript-prelude M Data.Semiring.Generic
genericAppend :: forall a rep. Generic a rep => GenericSemigroup rep => a -> a -> a

A Generic implementation of the append member from the Semigroup type class.

P purescript-prelude M Data.Semigroup.Generic
genericAppend' :: forall a. GenericSemigroup a => a -> a -> a
P purescript-prelude M Data.Semigroup.Generic
genericConj :: forall a rep. Generic a rep => GenericHeytingAlgebra rep => a -> a -> a

A Generic implementation of the conj member from the HeytingAlgebra type class.

P purescript-prelude M Data.HeytingAlgebra.Generic
genericConj' :: forall a. GenericHeytingAlgebra a => a -> a -> a
P purescript-prelude M Data.HeytingAlgebra.Generic
genericDisj :: forall a rep. Generic a rep => GenericHeytingAlgebra rep => a -> a -> a

A Generic implementation of the disj member from the HeytingAlgebra type class.

P purescript-prelude M Data.HeytingAlgebra.Generic
genericDisj' :: forall a. GenericHeytingAlgebra a => a -> a -> a
P purescript-prelude M Data.HeytingAlgebra.Generic
genericImplies :: forall a rep. Generic a rep => GenericHeytingAlgebra rep => a -> a -> a

A Generic implementation of the implies member from the HeytingAlgebra type class.

P purescript-prelude M Data.HeytingAlgebra.Generic
genericImplies' :: forall a. GenericHeytingAlgebra a => a -> a -> a
P purescript-prelude M Data.HeytingAlgebra.Generic
genericMul :: forall a rep. Generic a rep => GenericSemiring rep => a -> a -> a

A Generic implementation of the mul member from the Semiring type class.

P purescript-prelude M Data.Semiring.Generic
genericMul' :: forall a. GenericSemiring a => a -> a -> a
P purescript-prelude M Data.Semiring.Generic
genericSub :: forall a rep. Generic a rep => GenericRing rep => a -> a -> a

A Generic implementation of the sub member from the Ring type class.

P purescript-prelude M Data.Ring.Generic
genericSub' :: forall a. GenericRing a => a -> a -> a
P purescript-prelude M Data.Ring.Generic
implies :: forall a. HeytingAlgebra a => a -> a -> a
P purescript-prelude M Data.HeytingAlgebra
lcm :: forall a. Eq a => EuclideanRing a => a -> a -> a

The least common multiple of two values.

P purescript-prelude M Data.EuclideanRing
leftDiv :: forall a. DivisionRing a => a -> a -> a

Left division, defined as leftDiv a b = recip b * a. Left and right division are distinct in this module because a DivisionRing is not necessarily commutative.

If the type a is also a EuclideanRing, then this function is equivalent to div from the EuclideanRing class. When working abstractly, div should generally be preferred, unless you know that you need your code to work with noncommutative rings.

P purescript-prelude M Data.DivisionRing
max :: forall a. Ord a => a -> a -> a

Take the maximum of two values. If they are considered equal, the first argument is chosen.

P purescript-prelude M Data.Ord
min :: forall a. Ord a => a -> a -> a

Take the minimum of two values. If they are considered equal, the first argument is chosen.

P purescript-prelude M Data.Ord
mod :: forall a. EuclideanRing a => a -> a -> a
P purescript-prelude M Data.EuclideanRing
mul :: forall a. Semiring a => a -> a -> a
P purescript-prelude M Data.Semiring
rightDiv :: forall a. DivisionRing a => a -> a -> a

Right division, defined as rightDiv a b = a * recip b. Left and right division are distinct in this module because a DivisionRing is not necessarily commutative.

If the type a is also a EuclideanRing, then this function is equivalent to div from the EuclideanRing class. When working abstractly, div should generally be preferred, unless you know that you need your code to work with noncommutative rings.

P purescript-prelude M Data.DivisionRing
sub :: forall a. Ring a => a -> a -> a
P purescript-prelude M Data.Ring
call :: forall s. IsString s => Monoid s => s -> s -> s

Syntax for CSS function call.

P purescript-css M CSS.Common
ract :: forall g s. RightAction g s => s -> g -> s
P purescript-group M Data.Group.Action
maddL :: forall x r. LeftModule x r => x -> x -> x
P purescript-modules M Data.Ring.Module
maddR :: forall x r. RightModule x r => x -> x -> x
P purescript-modules M Data.Ring.Module
mmulR :: forall x r. RightModule x r => x -> r -> x
P purescript-modules M Data.Ring.Module
msubL :: forall x r. LeftModule x r => x -> x -> x
P purescript-modules M Data.Ring.Module
msubR :: forall x r. RightModule x r => x -> x -> x
P purescript-modules M Data.Ring.Module
bindTo :: forall f o. f -> o -> f
P purescript-ffi-simple M FFI.Simple.Functions
defaultUndef :: forall a. a -> a -> a
P purescript-ffi-simple M FFI.Simple.Undef
join :: forall a. JoinSemilattice a => a -> a -> a
P purescript-lattice M Data.Lattice
meet :: forall a. MeetSemilattice a => a -> a -> a
P purescript-lattice M Data.Lattice
pathAppend :: forall m. XPathLike m => m -> m -> m

Put a path seperator between two XPaths and return the resulting XPath.

P purescript-xpath-like M Data.XPath
pathAppendNSx :: forall m. XPathLike m => m -> m -> m

Useful variant of pathAppend needed for some XPath implementations; insert a separator with a dummy namespace ("x") for the second XPath fragment. For example: root /? "record" /? "identifier" == "/x:record/x:identifier".

P purescript-xpath-like M Data.XPath
and :: forall a. Binary a => a -> a -> a
P purescript-binary M Data.Binary
join :: forall a. JoinSemilattice a => a -> a -> a
P purescript-colehaus-lattice M Data.Lattice
maddL :: forall x r. LeftModule x r => x -> x -> x
P purescript-ring-modules M Data.Ring.Module
maddR :: forall x r. RightModule x r => x -> x -> x
P purescript-ring-modules M Data.Ring.Module
meet :: forall a. MeetSemilattice a => a -> a -> a
P purescript-colehaus-lattice M Data.Lattice
mmulR :: forall x r. RightModule x r => x -> r -> x
P purescript-ring-modules M Data.Ring.Module
msubL :: forall x r. LeftModule x r => x -> x -> x
P purescript-ring-modules M Data.Ring.Module
msubR :: forall x r. RightModule x r => x -> x -> x
P purescript-ring-modules M Data.Ring.Module
nand :: forall α. HeytingAlgebra α => α -> α -> α
P purescript-unicode-prelude M Data.HeytingAlgebra.Unicode
nor :: forall α. HeytingAlgebra α => α -> α -> α
P purescript-unicode-prelude M Data.HeytingAlgebra.Unicode
or :: forall a. Binary a => a -> a -> a
P purescript-binary M Data.Binary
patch :: forall a d. Patch a d => a -> d -> a
P purescript-incremental-functions M Data.Incremental
reciprocal :: forall n n1 n2 a r. Add n2 1 n1 => Add n1 1 n => Arity a n => Divisible r => Eq r => EuclideanRing r => Leadable r => Ord r => Pad n2 (Polynomial r) a => Peel r r => Unpad n2 (Polynomial r) a => a -> a -> a

Computes the reciprocal of the first polynomial in the extension whose minimal polynomial is provided by the second polynomial

P purescript-numberfield M Data.Algebraic.NumberField
xor :: forall a. Binary a => a -> a -> a
P purescript-binary M Data.Binary
xor :: forall a. HeytingAlgebra a => a -> a -> a
P purescript-boolean-eq M Data.BooleanEq
xor :: forall α. HeytingAlgebra α => α -> α -> α
P purescript-unicode-prelude M Data.HeytingAlgebra.Unicode
_add :: forall a. HasAdd a => a -> a -> a
P purescript-neon M Neon.Operator
_and :: forall a. HasAnd a => a -> a -> a
P purescript-neon M Neon.Operator
_divide :: forall a. HasDivide a => a -> a -> a
P purescript-neon M Neon.Operator
_multiply :: forall a. HasMultiply a => a -> a -> a
P purescript-neon M Neon.Operator
_or :: forall a. HasOr a => a -> a -> a
P purescript-neon M Neon.Operator
_power :: forall a. HasPower a => a -> a -> a
P purescript-neon M Neon.Operator
_remainder :: forall a. HasRemainder a => a -> a -> a
P purescript-neon M Neon.Operator
_subtract :: forall a. HasSubtract a => a -> a -> a
P purescript-neon M Neon.Operator
add :: forall a. HasAdd a => a -> a -> a
P purescript-neon M Neon.Class.HasAdd
always :: forall b a. a -> b -> a

Always returns the first argument.

"anything" :always 1 -- 1

This is the constant function.

P purescript-neon M Neon.Primitive.Function
and :: forall a. HasAnd a => a -> a -> a
P purescript-neon M Neon.Class.HasAnd
asTypeOf :: forall a. a -> a -> a

A type-restricted version of always.

[] :asTypeOf [1] -- [] :: Array Int
P purescript-neon M Neon.Helper
decorate :: forall a b. Decorate a b => a -> b -> a
P purescript-materialize M Materialize.Markup.Decorate
divide :: forall a. HasDivide a => a -> a -> a
P purescript-neon M Neon.Class.HasDivide
getAllArgs :: forall all given. OptArgs all given => all -> given -> all
P purescript-interactive-data M InteractiveData.Core.Classes.OptArgs
kestrel :: forall b a. a -> b -> a

K combinator - kestrel

K

Λ a b . a → b → a

λ x y . x

P purescript-birds M Aviary.Birds
max :: forall a. HasGreater a => a -> a -> a

Returns the greater value.

max 1 2 -- 2
max 2 1 -- 2
P purescript-neon M Neon.Helper
maxByOrder :: forall a. Ord a => a -> a -> a
P purescript-liminal M Data.Geometry.BoundingBox
min :: forall a. HasLess a => a -> a -> a

Returns the lesser value.

min 1 2 -- 1
min 2 1 -- 1
P purescript-neon M Neon.Helper
minByOrder :: forall a. Ord a => a -> a -> a
P purescript-liminal M Data.Geometry.BoundingBox
multiply :: forall a. HasMultiply a => a -> a -> a
P purescript-neon M Neon.Class.HasMultiply
or :: forall a. HasOr a => a -> a -> a
P purescript-neon M Neon.Class.HasOr
or :: forall a. Bitwise a => a -> a -> a
P purescript-webgpu M Web.GPU.Internal.Bitwise
plus :: forall a b. Summable a b => a -> b -> a
P purescript-canvas-geometry M Graphics.Canvas.Geometry
plus :: forall a b. Summable a b => a -> b -> a
P purescript-geometry-plane M Data.Geometry.Plane
power :: forall a. HasPower a => a -> a -> a
P purescript-neon M Neon.Class.HasPower
remainder :: forall a. HasRemainder a => a -> a -> a
P purescript-neon M Neon.Class.HasRemainder
scale :: forall a. Space a => a -> (a -> a)
P purescript-dual-numbers M Data.Number.Dual
subtract :: forall a. HasSubtract a => a -> a -> a
P purescript-neon M Neon.Class.HasSubtract
withAttribute :: forall a b. HasAttribute a b => a -> b -> a

Add an attribute to element node

P purescript-bonsai M Bonsai.Html.Internal
sans :: forall m a b. At m a b => a -> m -> m
P purescript-profunctor-lenses M Data.Lens.At
add :: forall x y z. Add x y z => x -> y -> z
P purescript-typelevel M Data.Typelevel.Num.Ops
and :: forall b1 b2 b3. And b1 b2 b3 => b1 -> b2 -> b3
P purescript-typelevel M Data.Typelevel.Bool
div :: forall x y z. Div x y z => x -> y -> z
P purescript-typelevel M Data.Typelevel.Num.Ops
eq :: forall b1 b2 b3. Eq b1 b2 b3 => b1 -> b2 -> b3
P purescript-typelevel M Data.Typelevel.Bool
gcd :: forall x y z. GCD x y z => x -> y -> z
P purescript-typelevel M Data.Typelevel.Num.Ops
imp :: forall b1 b2 b3. Imp b1 b2 b3 => b1 -> b2 -> b3
P purescript-typelevel M Data.Typelevel.Bool
max :: forall x y z. Max x y z => x -> y -> z
P purescript-typelevel M Data.Typelevel.Num.Ops
min :: forall x y z. Min x y z => x -> y -> z
P purescript-typelevel M Data.Typelevel.Num.Ops
mod :: forall x y r. Mod x y r => x -> y -> r
P purescript-typelevel M Data.Typelevel.Num.Ops
mul :: forall x y z. Mul x y z => x -> y -> z
P purescript-typelevel M Data.Typelevel.Num.Ops
or :: forall b1 b2 b3. Or b1 b2 b3 => b1 -> b2 -> b3
P purescript-typelevel M Data.Typelevel.Bool
sub :: forall x y z. Sub x y z => x -> y -> z
P purescript-typelevel M Data.Typelevel.Num.Ops
trich :: forall x y r. Trich x y r => x -> y -> r
P purescript-typelevel M Data.Typelevel.Num.Ops
xor :: forall b1 b2 b3. Xor b1 b2 b3 => b1 -> b2 -> b3
P purescript-typelevel M Data.Typelevel.Bool
hmap :: forall f a b. HMap f a b => f -> a -> b
P purescript-heterogeneous M Heterogeneous.Mapping
hmapWithIndex :: forall f a b. HMapWithIndex f a b => f -> a -> b
P purescript-heterogeneous M Heterogeneous.Mapping
mapping :: forall f a b. Mapping f a b => f -> a -> b
P purescript-heterogeneous M Heterogeneous.Mapping
reduce :: forall f i o. Reducible f i o => f -> i -> o
P purescript-untagged-union M Untagged.Union
lact :: forall g s. LeftAction g s => g -> s -> s
P purescript-group M Data.Group.Action
convertOptions :: forall t i o. ConvertOptions t i o => t -> i -> o
P purescript-convertable-options M ConvertableOptions
defaults :: forall defaults provided all. Defaults defaults provided all => defaults -> provided -> all
P purescript-convertable-options M ConvertableOptions
mmulL :: forall x r. LeftModule x r => r -> x -> x
P purescript-modules M Data.Ring.Module
new :: forall f a o. f -> a -> o

Call new on the function with an array or pseudoarray of arguments

P purescript-ffi-simple M FFI.Simple.Functions
dot :: forall p n. ToPos n p => Semiring n => p -> p -> n

Get the dot product of two vectors

P purescript-polymorphic-vectors M Data.Vector.Polymorphic
mapProduct :: forall mp a b. MapProduct mp a b => mp -> a -> b
P purescript-classless M Classless
putInsideMod :: forall r p n. ToRegion n r => AsPosEndo n p => EuclideanRing n => r -> p -> p

Put a position inside a region by using the modulus operator

P purescript-polymorphic-vectors M Data.Vector.Polymorphic
act :: forall m s. Action m s => m -> s -> s

Convert a value of type @m@ to an action on @s@ values.

P purescript-monoid-extras M Data.Monoid.Action
at :: forall c k r. Monoid r => Lookup c k r => c -> k -> r

This simple helper works on any Lookup instance where the return type is a Monoid, and is the same as lookup except that it returns a t instead of a Maybe t. If lookup would return Nothing, then at returns mempty.

P purescript-httpure M HTTPure.Lookup
at :: forall c k r. Monoid r => Lookup c k r => c -> k -> r

This simple helper works on any Lookup instance where the return type is a Monoid, and is the same as lookup except that it returns a t instead of a Maybe t. If lookup would return Nothing, then at returns mempty.

P purescript-httpurple M HTTPurple.Lookup
setCtx :: forall props' props ctx. WithContextProps props' props ctx => ctx -> props' -> props
P purescript-react-hocs M ReactHocs.Class
adjacentSibling :: forall a b c. IsExtensibleSelector a => ToVal a => Combine b c => a -> b -> c
P purescript-tecton M Tecton.Internal
child :: forall a b c. IsExtensibleSelector a => ToVal a => Combine b c => a -> b -> c
P purescript-tecton M Tecton.Internal
dbg :: forall s a. Show s => s -> a -> a
P purescript-binary M Debug
descendant :: forall a b c. IsExtensibleSelector a => ToVal a => Combine b c => a -> b -> c
P purescript-tecton M Tecton.Internal
diff :: forall a d. Diff a d => a -> a -> d
P purescript-incremental-functions M Data.Incremental
generalSibling :: forall a b c. IsExtensibleSelector a => ToVal a => Combine b c => a -> b -> c
P purescript-tecton M Tecton.Internal
mmulL :: forall x r. LeftModule x r => r -> x -> x
P purescript-ring-modules M Data.Ring.Module
pursxStringAnonymous :: forall accumulator next res. PursxStringAnonymous accumulator next res => accumulator -> next -> res
P purescript-deku M Deku.Pursx.Anonymous
pursxValAnonymous :: forall accumulator next res. PursxValAnonymous accumulator next res => accumulator -> next -> res
P purescript-deku M Deku.Pursx.Anonymous
set :: forall s t a b @sym lenses. IsSymbol sym => ParseSymbol sym lenses => ConstructBarlow lenses Function s t a b => b -> s -> t
P purescript-barlow-lens M Data.Lens.Barlow.Helpers
add :: forall a b c r. Arith a b c r => a -> b -> c
P purescript-z3 M Z3
and :: forall a b r. LogicalMatcher a b r => a -> b -> r
P purescript-pmock M Test.PMock.Param
bind :: forall a g f. f -> a -> g
P purescript-ffi-utils M FFI.Util.Function
cons :: forall a b r. ConsGen a b r => a -> b -> r
P purescript-pmock M Test.PMock.Param
decorateFlipped :: forall b a. Decorate b a => a -> b -> b
P purescript-materialize M Materialize.Markup.Decorate
diff' :: forall changed model. Diff changed model => changed -> (model -> model)
P purescript-flame M Flame.Application.Effectful
div :: forall a b c r. Arith a b c r => a -> b -> c
P purescript-z3 M Z3
dot :: forall p g f. Dottable p g f => p -> g -> f
P purescript-functor-vector M Data.Dottable
fold :: forall stepper a fold. Fold stepper a fold => stepper -> a -> fold
P purescript-record-fold M Data.Record.Fold
from :: forall f q fields sql. ToFrom f q fields => Resume q (From f fields E) sql => f -> q -> sql

FROM accepts the following sources

  • Tables
  • Inner and outer joins
  • Aliased tables
  • Aliased SELECT statements

Due to how SQL binding works, joins and subqueries require brackets to be parsed correctly. For example:

  • SELECT column FROM (SELECT column FROM table) AS alias should be select column # from (select column # from table # as alias))
  • SELECT column FROM table alias JOIN other_table other_alias should be select column # from ((table # as alias)join(other_table # as other_alias)))

To aid composition, SELECT projections are only validated on FROM

P purescript-droplet M Droplet.Language.Internal.Syntax
groupBy :: forall f s q sql grouped columns. ToGroupBy q s columns => GroupedColumns f columns grouped => ValidGroupByProjection s grouped => Resume q (GroupBy f E) sql => f -> q -> sql

GROUP BY statement

P purescript-droplet M Droplet.Language.Internal.Syntax
hmap :: forall f a b. HMap f a b => f -> a -> b
P purescript-heterogenous M Heterogenous.Mapping
hmapWithIndex :: forall f a b. HMapWithIndex f a b => f -> a -> b
P purescript-heterogenous M Heterogenous.Mapping
investigate :: forall b a. Warn "Debug.Trace usage" => Show a => a -> b -> b

Once in a while, we all need to debug. A lot of programmers from imperative languages find real trouble with debugging, as they can't just bung in a console.log to see values. Well, what if I told you... you can! So, we can cheat a little bit, and use some escape hatches in the Debug package, including traceShow, which will log anything Showable. With this function, we can show a value at any point, and return anything!

P purescript-prelewd M Prelewd
mapping :: forall f a b. Mapping f a b => f -> a -> b
P purescript-heterogenous M Heterogenous.Mapping
mod_ :: forall a b c r. Arith a b c r => a -> b -> c
P purescript-z3 M Z3
mul :: forall a b c r. Arith a b c r => a -> b -> c
P purescript-z3 M Z3
new1 :: forall b a1 o. o -> a1 -> b
P purescript-ffi-utils M FFI.Util
oneShotChange :: forall tau p au. OneShotChange tau p au => tau -> p -> au
P purescript-wags M WAGS.Change
or :: forall a b r. LogicalMatcher a b r => a -> b -> r
P purescript-pmock M Test.PMock.Param
orderBy :: forall f q sql. ToOrderBy f q => Resume q (OrderBy f E) sql => f -> q -> sql

ORDER BY statement

P purescript-droplet M Droplet.Language.Internal.Syntax
perform :: forall a o op. SymbioteOperation a o op => op -> a -> o
P purescript-symbiote M Test.Serialization.Symbiote.Core
pow :: forall a b c r. Arith a b c r => a -> b -> c
P purescript-z3 M Z3
property :: forall c b a. a -> b -> c
P purescript-weber M Weber.Event
provide :: forall result a. a -> (Ask a => result) -> result

Provide an implicit parameter to a computation which requires it

P purescript-ask M Control.Ask
queryReturnsImpl :: forall schema query returns. QueryReturns schema query returns => schema -> query -> returns

Do not use this. Use queryReturns instead. Only exported due to compiler restrictions

P purescript-graphql-client M GraphQL.Client.QueryReturns
resume :: forall a b c. Resume a b c => a -> b -> c
P purescript-droplet M Droplet.Language.Internal.Syntax
returning :: forall f q sql. ToReturning f q => Resume q (Returning f) sql => f -> q -> sql
P purescript-droplet M Droplet.Language.Internal.Syntax
rotate :: forall input tail output. ArgsRotater input tail output => input -> tail -> output
P purescript-eta-conversion M Data.ArgsRotater
scoped :: forall f output mod. Scoped f output => mod -> f -> output
P purescript-lazy-joe M Lazy.Joe
sub :: forall a b c r. Arith a b c r => a -> b -> c
P purescript-z3 M Z3
transform :: forall function return constructor. EtaConversionTransformer function return constructor => constructor -> function -> return
P purescript-eta-conversion M Data.EtaConversionTransformer
transformFlipped :: forall function return constructor. EtaConversionTransformer function return constructor => function -> constructor -> return
P purescript-eta-conversion M Data.EtaConversionTransformer
transformWith :: forall function return constructor. WithInputEtaConversionTransformer function return constructor => constructor -> function -> return
P purescript-eta-conversion M Data.EtaConversionTransformer
transformWithFlipped :: forall function return constructor. WithInputEtaConversionTransformer function return constructor => function -> constructor -> return
P purescript-eta-conversion M Data.EtaConversionTransformer
tupleRev :: forall t1 acc t2. TupleRev t1 acc t2 => t1 -> acc -> t2
P purescript-selda M Selda.PG.Utils
unionObject :: forall from to. ObjectUnion from to => from -> to -> to
P purescript-identy M Identy.Populater
unsafeAdd :: forall a b c. a -> b -> c
P purescript-z3 M Z3.Internal
unsafeDiv :: forall a b c. a -> b -> c
P purescript-z3 M Z3.Internal
unsafeMod :: forall a b c. a -> b -> c
P purescript-z3 M Z3.Internal
unsafeMul :: forall a b c. a -> b -> c
P purescript-z3 M Z3.Internal
unsafePow :: forall a b c. a -> b -> c
P purescript-z3 M Z3.Internal
unsafeSub :: forall a b c. a -> b -> c
P purescript-z3 M Z3.Internal
unsafeWithChildren :: forall c p. c -> p -> p
P purescript-react-basic-dom-beta M Beta.DOM.Internal
unsafeWithChildren :: forall c p. c -> p -> p
P purescript-yoga-react-dom M Yoga.React.DOM.Internal
wher :: forall c q sql. ToWhere c q => Resume q (Where c E) sql => c -> q -> sql

WHERE statement

P purescript-droplet M Droplet.Language.Internal.Syntax
pure :: forall f a. Applicative f => a -> f a
P purescript-prelude M Control.Applicative
singleton :: forall f a. Unfoldable1 f => a -> f a

Contain a single value. For example:

singleton "foo" == (NEL.singleton "foo" :: NEL.NonEmptyList String)
P purescript-unfoldable M Data.Unfoldable1
downFrom :: forall a u. Enum a => Unfoldable u => a -> u a

Produces all predecessors of an Enum value, excluding the start value.

P purescript-enums M Data.Enum
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.

P purescript-enums M Data.Enum
upFrom :: forall a u. Enum a => Unfoldable u => a -> u a

Produces all successors of an Enum value, excluding the start value.

P purescript-enums M Data.Enum
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.

P purescript-enums M Data.Enum
lambek :: forall t f. Recursive t f => Corecursive t f => t -> f t
P purescript-matryoshka M Matryoshka.Fold
project :: forall t f. Recursive t f => t -> f t
P purescript-matryoshka M Matryoshka.Class.Recursive
pure :: forall v f c. HasPure c f => ObjectOf c v => v -> f v
P purescript-subcategory M Control.Subcategory.Functor.HasPure
bottom1_ :: forall f a. Bottom1_ f => a -> f a
P purescript-higher-order M Data.Operator.Bottom
top1_ :: forall f a. Top1_ f => a -> f a
P purescript-higher-order M Data.Operator.Top
dsingleton :: forall cnt a. Diff cnt => a -> cnt a
P purescript-difference-containers M Containers.Difference
pure :: forall d a. Syntax d => Eq a => a -> d a
P purescript-invertible-syntax M Text.Syntax.Classes
pure :: forall f a. Unital Function Unit Unit f => Functor f => a -> f a
P purescript-monoidal M Data.Functor.ApplicativeDo
pure :: forall a b. HasPure a => b -> a b
P purescript-neon M Neon.Class.HasPure
pure :: forall f a. Applicative f => a -> f a
P purescript-qualified-do M QualifiedDo.ParApply
repeat :: forall a u. Unfoldable1 u => a -> u a

Create an infinite Unfoldable1 by repeating a single element.

P purescript-trivial-unfold M Data.Unfoldable1.Trivial1
throwError :: forall e m a. MonadThrow e m => e -> m a
P purescript-transformers M Control.Monad.Error.Class
sequenceProduct :: forall specI specO f. SequenceProduct specI specO f => specI -> f specO
P purescript-classless M Classless
bottom2 :: forall f a b. Bottom2 f a => a -> f b
P purescript-higher-order M Data.Operator.Bottom
act :: forall m b a. Mother m => a -> m b
P mother-monad M Control.Monad.Mother.Class
mockFun :: forall params fun verifyParams m. MockBuilder params fun verifyParams => MonadEffect m => params -> m fun
P purescript-pmock M Test.PMock
query :: forall m q r. MonadSession m => AsQuery q => FromRows r => q -> m r

Executes a query and unmarshals the result into r

P purescript-postgresql M Control.Monad.Postgres.Session
read :: forall box val m. Read box val => MonadDelay m => box -> m val

Read the current value. Will never cause a refresh.

P purescript-toestand M Toestand.Classes
siteClock :: forall s m i c. Site s m i c => s -> m c
P purescript-logoot-core M Logoot.Types.Class.Site
siteId :: forall s m i c. Site s m i c => s -> m i
P purescript-logoot-core M Logoot.Types.Class.Site
throw :: forall (t10 :: Type -> Type) (t11 :: Type) (a12 :: Type). MonadThrow Error t10 => Show a12 => a12 -> t10 t11
P purescript-droplet M Droplet.Driver.Internal.Migration
unfold :: forall f a s. Convert s (Statements a) => Unfoldable1 f => s -> f a
P purescript-qualified-do M QualifiedDo.Unfoldable
abs :: forall a. Ord a => Ring a => a -> a

The absolute value function. abs x is defined as if x >= zero then x else negate x.

P purescript-prelude M Data.Ord
from :: forall a rep. Generic a rep => a -> rep
P purescript-prelude M Data.Generic.Rep
genericNot :: forall a rep. Generic a rep => GenericHeytingAlgebra rep => a -> a

A Generic implementation of the not member from the HeytingAlgebra type class.

P purescript-prelude M Data.HeytingAlgebra.Generic
genericNot' :: forall a. GenericHeytingAlgebra a => a -> a
P purescript-prelude M Data.HeytingAlgebra.Generic
negate :: forall a. Ring a => a -> a

negate x can be used as a shorthand for zero - x.

P purescript-prelude M Data.Ring
not :: forall a. HeytingAlgebra a => a -> a
P purescript-prelude M Data.HeytingAlgebra
recip :: forall a. DivisionRing a => a -> a
P purescript-prelude M Data.DivisionRing
signum :: forall a. Ord a => Ring a => a -> a

The sign function; returns one if the argument is positive, negate one if the argument is negative, or zero if the argument is zero. For floating point numbers with signed zeroes, when called with a zero, this function returns the argument in order to preserve the sign. For any x, we should have signum x * abs x == x.

P purescript-prelude M Data.Ord
to :: forall a rep. Generic a rep => rep -> a
P purescript-prelude M Data.Generic.Rep
unwrap :: forall t a. Newtype t a => t -> a
P purescript-newtype M Data.Newtype
wrap :: forall t a. Newtype t a => a -> t
P purescript-newtype M Data.Newtype
unsafeCoerce :: forall a b. a -> b

A highly unsafe function, which can be used to persuade the type system that any type is the same as any other type. When using this function, it is your (that is, the caller's) responsibility to ensure that the underlying representation for both types is the same.

Because this function is extraordinarily flexible, type inference can greatly suffer. It is highly recommended to define specializations of this function rather than using it as-is. For example:

fromBoolean :: Boolean -> Json
fromBoolean = unsafeCoerce

This way, you won't have any nasty surprises due to the inferred type being different to what you expected.

After the v0.14.0 PureScript release, some of what was accomplished via unsafeCoerce can now be accomplished via coerce from purescript-safe-coerce. See that library's documentation for more context.

P purescript-unsafe-coerce M Unsafe.Coerce
inj :: forall a b. Inject a b => a -> b
P purescript-either M Data.Either.Inject
unsafePartial :: forall a. (Partial => a) -> a

Discharge a partiality constraint, unsafely.

P purescript-partial M Partial.Unsafe
from :: forall a b. TypeEquals a b => b -> a
P purescript-type-equality M Type.Equality
to :: forall a b. TypeEquals a b => a -> b
P purescript-type-equality M Type.Equality
convertDuration :: forall a b. Duration a => Duration b => a -> b

Converts directly between durations of differing types.

P purescript-datetime M Data.Time.Duration
negateDuration :: forall a. Duration a => a -> a

Negates a duration, turning a positive duration negative or a negative duration positive.

P purescript-datetime M Data.Time.Duration
coerce :: forall a b. Coercible a b => a -> b

Coerce a value of one type to a value of some other type, without changing its runtime representation. This function behaves identically to unsafeCoerce at runtime. Unlike unsafeCoerce, it is safe, because the Coercible constraint prevents any use of this function from compiling unless the compiler can prove that the two types have the same runtime representation.

One application for this function is to avoid doing work that you know is a no-op because of newtypes. For example, if you have an Array (Conj a) and you want an Array (Disj a), you could do Data.Array.map (un Conj >>> Disj), but this performs an unnecessary traversal of the array, with O(n) cost. coerce accomplishes the same with only O(1) cost:

mapConjToDisj :: forall a. Array (Conj a) -> Array (Disj a)
mapConjToDisj = coerce
P purescript-safe-coerce M Safe.Coerce
div10 :: forall x q. Div10 x q => x -> q
P purescript-typelevel M Data.Typelevel.Num.Ops
isDivBy :: forall d x. IsDivBy d x => d -> x
P purescript-typelevel M Data.Typelevel.Num.Ops
mul10 :: forall x q. Mul10 x q => x -> q
P purescript-typelevel M Data.Typelevel.Num.Ops
not :: forall b1 b2. Not b1 b2 => b1 -> b2
P purescript-typelevel M Data.Typelevel.Bool
pred :: forall x y. Pred x y => x -> y
P purescript-typelevel M Data.Typelevel.Num.Ops
succ :: forall x y. Succ x y => x -> y
P purescript-typelevel M Data.Typelevel.Num.Ops
cast :: forall a b. Castable a b => a -> b
P purescript-untagged-union M Untagged.Castable
coerce :: forall expected given. Coerce given expected => given -> expected
P purescript-undefined-is-not-a-problem M Data.Undefined.NoProblem.Closed
coerce :: forall expected given. Coerce given expected => given -> expected
P purescript-undefined-is-not-a-problem M Data.Undefined.NoProblem.Open
ginverse :: forall g. Group g => g -> g
P purescript-group M Data.Group
convertTo :: forall t f r. Recursive t f => Corecursive r f => t -> r
P purescript-matryoshka M Matryoshka.Refold
fill :: forall partial complete. Fillable partial complete => partial -> complete
P purescript-justifill M Justifill.Fillable
justify :: forall unjust just. Justifiable unjust just => unjust -> just
P purescript-justifill M Justifill.Justifiable
mnegateL :: forall r x. LeftModule x r => x -> x
P purescript-modules M Data.Ring.Module
mnegateR :: forall r x. RightModule x r => x -> x
P purescript-modules M Data.Ring.Module
nextPrime :: forall a. Ord a => Semiring a => EuclideanRing a => a -> a

Ad infinitum

P purescript-sparse-polynomials M Data.Sparse.Polynomial
pad :: forall @n a b. Pad n a b => a -> b
P purescript-sparse-polynomials M Data.Sparse.Polynomial

No further results.