Module

Polyform.Validators.Affjax

Package
purescript-polyform-validators
Repository
lambdaterms/purescript-polyform-validators

#HttpError Source

type HttpError (err :: Row Type) = (wrongHttpStatus :: StatusCode | err)

#AffjaxError Source

type AffjaxError (err :: Row Type) = (remoteError :: String | err)

#ResponseFormatError Source

type ResponseFormatError (err :: Row Type) = (responseFormatError :: String | err)

#valid Source

valid :: forall a e. Semigroup e => a -> V e a

#affjax Source

affjax :: forall err a. Validator Aff (Error err) (Request a) (Response a)

#status Source

status :: forall res err m. Monad m => (StatusCode -> Boolean) -> Validator m (Error (HttpError + err)) (Response res) (Response res)

#body Source

body :: forall res err m. Monad m => Validator m (Error (HttpError + err)) (Response res) res