Search results
Asynchronous effect monad
An Aff a is an asynchronous computation with effects. The
computation may either error with an exception, or produce a result of
type a. Aff effects are assembled from primitive Effect effects using
makeAff or liftEffect.
Type synonym for using Aff as an effect.
Aff :: PitchClass
aff :: Octave -> Dur -> Music Pitch
affix :: ClassName
An asynchronous AJAX library built using Aff.
M Affjax
Note: this module is not intended to be used by end-users. Rather, use the environment-specific library instead:
purescript-affjax-nodepurescript-affjax-web
You should use this module if you are writing a driver for a specific environment. See this module's source code for more details.
affjax :: forall b a. Requestable a => Respondable b => AffjaxRequest a -> AffjaxF a b
Makes an Affjax request.
affjax :: forall err a. Validator Aff (Error err) (Request a) (Response a)
Many-to-many broadcasting
An AffGame is an Aff that takes a Reducer as an argument. Can be
constructed from a TemplateAffGame using mkAffGame.
AffGame :: forall extra a. (Reducer extra Req -> Aff a) -> AffGame extra a
Affinity is a group of affinity scheduling rules.
Fields:
nodeAffinity: Describes node affinity scheduling rules for the pod.podAffinity: Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).podAntiAffinity: Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
Affinity :: { nodeAffinity :: Maybe NodeAffinity, podAffinity :: Maybe PodAffinity, podAntiAffinity :: Maybe PodAntiAffinity } -> Affinity
AffjaxFP :: forall req res a. (AffjaxRequest req) -> (Either Error (AffjaxResponse res) -> a) -> AffjaxFP req res a
affAction :: forall a v. v -> Aff a -> Widget v a
affAction :: forall a r. r -> ReaderT r Aff a -> Effect Unit
Create an action dispatcher for Aff and any given the context (e.g. ReactThis)
An asynchronous AJAX library built using Aff that runs on the browser.
affjaxJson :: forall errs. Validator Aff (Error (HttpError + AffjaxError + ResponseFormatError + errs)) (Request Json) Json
affLocator :: (Element -> Aff Element) -> Aff Locator
Build locator from asynchronous function returning element.
I.e. this locator will find first visible element with .common-element class
affLocator \el → do
commonElements ← byCss ".common-element" >>= findElements el
flagedElements ← traverse (\el → Tuple el <$> isVisible el) commonElements
maybe err pure $ foldl foldFn Nothing flagedElements
where
err = throwError $ error "all common elements are not visible"
foldFn Nothing (Tuple el true) = Just el
foldFn a _ = a
An asynchronous AJAX library built using Aff that runs on Node.js.
Parallelize asynchronous computations with specified number of fibers
bottom :: forall a. Bounded a => a
ff :: forall a. HeytingAlgebra a => a
genericBottom :: forall a rep. Generic a rep => GenericBottom rep => a
A Generic implementation of the bottom member from the Bounded type class.
genericBottom' :: forall a. GenericBottom a => a
genericFF :: forall a rep. Generic a rep => GenericHeytingAlgebra rep => a
A Generic implementation of the ff member from the HeytingAlgebra type class.
genericFF' :: forall a. GenericHeytingAlgebra a => a
genericMempty :: forall a rep. Generic a rep => GenericMonoid rep => a
A Generic implementation of the mempty member from the Monoid type class.
genericMempty' :: forall a. GenericMonoid a => a
genericOne :: forall a rep. Generic a rep => GenericSemiring rep => a
A Generic implementation of the one member from the Semiring type class.
genericOne' :: forall a. GenericSemiring a => a