Search results

show :: forall a. Show a => a -> String
P purescript-prelude M Data.Show
unsafeStringify :: forall a. a -> String

Uses the global JSON object to turn anything into a string. Careful! Trying to serialize functions returns undefined

P purescript-globals M Global.Unsafe
genericShow :: forall a rep. Generic a rep => GenericShow rep => a -> String

A Generic implementation of the show member from the Show type class.

P purescript-generics-rep M Data.Generic.Rep.Show
genericShow' :: forall a. GenericShow a => a -> String
P purescript-generics-rep M Data.Generic.Rep.Show
gShow :: forall a. Generic a => a -> String

This function can be used as the default instance for Show for any instance of Generic

P purescript-generics M Data.Generic
encodeJSON :: forall a. Encode a => a -> String

Encode a JSON string using an Encode instance.

P purescript-foreign-generic M Foreign.Generic
writeJSON :: forall a. WriteForeign a => a -> String

Write a JSON string from a type a.

P purescript-simple-json M Simple.JSON
defaultMessage :: forall error. error -> String
P purescript-error M Error.Class
defaultName :: forall error. error -> String
P purescript-error M Error.Class
localName :: forall el. IsElement el => el -> String
P purescript-dom-classy M DOM.Classy.Element
message :: forall error. Error error => error -> String
P purescript-error M Error.Class
name :: forall error. Error error => error -> String
P purescript-error M Error.Class
nodeName :: forall n. IsNode n => n -> String

For elements this is the tag name, for document types this is the doctype name, for processing instructions this is the target, for all other nodes it is a string like "#text", `"#comment", etc. depending on the node type.

P purescript-dom-classy M DOM.Classy.Node
tagName :: forall el. IsElement el => el -> String
P purescript-dom-classy M DOM.Classy.Element
unsafeJsonStringify :: forall a. a -> String
P purescript-benchotron M Benchotron.Utils
code :: forall error. NodeError error => error -> String
P purescript-idiomatic-node-errors M Node.Errors.Class
defaultCode :: forall error. error -> String
P purescript-idiomatic-node-errors M Node.Errors.Class
defaultStack :: forall error. error -> String
P purescript-idiomatic-node-errors M Node.Errors.Class
stack :: forall error. NodeError error => error -> String
P purescript-idiomatic-node-errors M Node.Errors.Class
fmtVar :: forall a. FormatVar a => a -> String
P purescript-record-format M Record.Format
renderValue :: forall a. Value a => a -> String
P purescript-markdown M Text.Markdown.SlamDown.Syntax.Value
toHeader :: forall x. ToHeader x => x -> String
P purescript-trout M Type.Trout.Header
toPathPiece :: forall x. ToPathPiece x => x -> String
P purescript-trout M Type.Trout.PathPiece
toText :: forall a. DotLang a => a -> String
P purescript-dotlang M Data.DotLang.Class
getKey :: forall a. HasKey a => a -> String
P purescript-key-based-diff M KeyBasedDiff
present :: forall a. Present a => a -> String
P purescript-oak M Oak.Html.Present
renderEJson :: forall t. Recursive t EJsonF => t -> String
P purescript-ejson M Data.Json.Extended
structName :: forall a. a -> String

Gets the contructor name for the type

P purescript-homogeneous-objects M Data.HObject.Record
toString :: forall a. Serializable a => a -> String
P purescript-simplecrypto M Crypto.Simple
animationName :: forall a. IsAnimation a => a -> String
P purescript-weber M Weber.Event
classNames :: forall a. ClassNames a => a -> String
P purescript-classnames M ClassNames
code :: forall a. IsKeyboard a => a -> String
P purescript-weber M Weber.Event

d

d :: forall a. HasDate a => a -> String

Day of month - with digits

P purescript-react-basic-textf M React.Basic.DOM.Textf.DateTimeFormat
dd :: forall a. HasDate a => a -> String

Day of month - two digits

P purescript-react-basic-textf M React.Basic.DOM.Textf.DateTimeFormat
ddd :: forall a. HasDate a => a -> String

Day of month short text - like Mon, Tue ...

P purescript-react-basic-textf M React.Basic.DOM.Textf.DateTimeFormat
dddd :: forall a. HasDate a => a -> String

Day of month full text - like Monday, Tuesday, ...

P purescript-react-basic-textf M React.Basic.DOM.Textf.DateTimeFormat
defaultEncodeJSON :: forall a b. Generic a b => GenericEncode b => a -> String
P purescript-presto M Presto.Core.Utils.Encoding
defaultHttpVersion :: forall message. message -> String
P purescript-idiomatic-node-http M Node.Http.IncomingMessage
encode :: forall a. CookieEncoder a => a -> String
P purescript-browser-cookies M Browser.Cookies.Data
encode' :: forall a. EncodeJson a => a -> String
P purescript-msgpack-msgpack M Msgpack
encodeBody :: forall body. EncodeBody body => body -> String
P purescript-payload M Payload.Client.EncodeBody
encodeParam :: forall a. EncodeParam a => a -> String
P purescript-payload M Payload.Client.EncodeParam
encodeResponse :: forall response. IsResponse response => response -> String
P purescript-quickserve M QuickServe
format :: forall a. Format a => a -> String
P purescript-web3-generator M Data.AbiParser
formatQueryString :: forall a b. Newtype a b => ToQueryString b => a -> String
P purescript-kubernetes M Kubernetes.Client
getAddress :: forall a. Address a => a -> String
P purescript-snail M Snail.Types
getKey :: forall a. Storable a => a -> String

Given a storable a will produce the key that it would have in storage.

P purescript-storable M Data.Storage
getTagName :: forall a. GetTagName a => a -> String
P purescript-bibimbap M Bibimbap
getTagNameImpl :: forall rep. GetTagNameImpl rep => rep -> String
P purescript-bibimbap M Bibimbap
hh :: forall a. HasTime a => a -> String

Hours with two digits - in 24h format

P purescript-react-basic-textf M React.Basic.DOM.Textf.DateTimeFormat
httpVersion :: forall message. IncomingMessage message => message -> String
P purescript-idiomatic-node-http M Node.Http.IncomingMessage
inspect :: forall a. HasInspect a => a -> String
P purescript-neon M Neon.Class.HasInspect
jsonStringify :: forall a. a -> String
P purescript-payload M Payload.Debug
key :: forall a. Storable a => a -> String

Produces a key from the given a. This is most appropriately an id or something like it.

P purescript-storable M Data.Storage
key :: forall a. IsKeyboard a => a -> String
P purescript-weber M Weber.Event

m

m :: forall a. HasDate a => a -> String

Month with digits

P purescript-react-basic-textf M React.Basic.DOM.Textf.DateTimeFormat
mi :: forall a. HasTime a => a -> String

Minutes with two digits

P purescript-react-basic-textf M React.Basic.DOM.Textf.DateTimeFormat
mm :: forall a. HasDate a => a -> String

Month with two digits

P purescript-react-basic-textf M React.Basic.DOM.Textf.DateTimeFormat
mmm :: forall a. HasDate a => a -> String

Month short text - like Jan, Feb, ...

P purescript-react-basic-textf M React.Basic.DOM.Textf.DateTimeFormat
mmmm :: forall a. HasDate a => a -> String

Month full text - like January, Februrary, ...

P purescript-react-basic-textf M React.Basic.DOM.Textf.DateTimeFormat
pointerType :: forall a. IsPointer a => a -> String
P purescript-weber M Weber.Event
propertyName :: forall a. IsTransition a => a -> String
P purescript-weber M Weber.Event
pseudoElement :: forall a. IsAnimation a => a -> String
P purescript-weber M Weber.Event
renderString :: forall a. Render a => a -> String
P purescript-materialize M Materialize.Markup.Render
serialize :: forall a. Serializable a => a -> String
P purescript-presto M Presto.Core.Types.Language.Storage
serialize :: forall a. Storable a => a -> String

Takes an a and (hopefully) reliably turns it into a string; this should be symmetric with deserialize. This can be conveniently implemented using Simple.JSON.

P purescript-storable M Data.Storage
showDebug :: forall a. ShowDebug a => a -> String
P purescript-payload M Payload.Debug
showStructure :: forall s. Structure s => s -> String
P purescript-screeps-classy M Screeps.Structure
ss :: forall a. HasTime a => a -> String

Seconds with two digits

P purescript-react-basic-textf M React.Basic.DOM.Textf.DateTimeFormat
to :: forall a. ToClassList a => a -> String
P purescript-flame M Flame.HTML.Attribute.Internal
toColor :: forall rep. CanvasColorRep rep => rep -> String
P purescript-canvas-action M Graphics.CanvasAction
toFlowRep' :: forall a. HasFlowRep a => a -> String

A convenience function for getting the flow rep of a concrete value

P purescript-bismuth M Bismuth
toHex :: forall a. ToHex a => a -> String
P purescript-ethereum-client M Ethereum.Text
toJson :: forall a. EncodeJson a => a -> String
P purescript-screeps-classy M Screeps.Memory
toParam :: forall a. ToParam a => a -> String
P purescript-chanpon M Chanpon.Classes
toPathSegment :: forall a. PathPiece a => a -> String
P purescript-intertwine M Data.Intertwine.Route.PathPiece
toQueryString :: forall a. ToQueryString a => a -> String
P purescript-kubernetes M Kubernetes.QueryString
toString :: forall a. IsString a => a -> String
P purescript-benchmark M Benchmark.Event
toString :: forall rep. GenericSelect rep => rep -> String
P purescript-lumi-components M Lumi.Components.Form
type' :: forall a. IsEvent a => a -> String
P purescript-weber M Weber.Event
typeof :: forall a. a -> String
P purescript-ffi-utils M FFI.Util
yyyy :: forall a. HasDate a => a -> String

Jear full - like 2020

P purescript-react-basic-textf M React.Basic.DOM.Textf.DateTimeFormat
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
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; always evaluates to either one or negate one. For any x, we should have signum x * abs x == x.

P purescript-prelude M Data.Ord
unwrap :: forall a t. Newtype t a => t -> a
P purescript-newtype M Data.Newtype
wrap :: forall a t. Newtype t a => a -> t
P purescript-newtype M Data.Newtype
inj :: forall b a. 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
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.

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 (runConj >>> Disj), but this performs an unnecessary traversal. unsafeCoerce accomplishes the same for free.

It is highly recommended to define specializations of this function rather than using it as-is. For example:

mapConjToDisj :: forall a. Array (Conj a) -> Array (Disj a)
mapConjToDisj = unsafeCoerce

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

P purescript-unsafe-coerce M Unsafe.Coerce
from :: forall b a. TypeEquals a b => b -> a
P purescript-type-equality M Type.Equality
to :: forall b a. 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
from :: forall rep a. Generic a rep => a -> rep
P purescript-generics-rep 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-generics-rep M Data.Generic.Rep.HeytingAlgebra
genericNot' :: forall a. GenericHeytingAlgebra a => a -> a
P purescript-generics-rep M Data.Generic.Rep.HeytingAlgebra
to :: forall rep a. Generic a rep => rep -> a
P purescript-generics-rep M Data.Generic.Rep