Package

purescript-prospero

Repository
rowtype-yoga/purescript-prospero
License
MIT
Uploaded by
pacchettibotti
Published on
2026-03-01T15:16:48Z

A type-safe GraphQL server library for PureScript.

Schema Validation

PureScript's type system prevents most invalid schemas at compile time: field type mismatches, missing resolvers, and incorrect argument types are all caught by the compiler.

The following edge cases are not validated and will surface at runtime (via SDL rendering or first query):

  • Duplicate GraphQL field names — two record fields using Named overrides that map to the same GraphQL name
  • Empty object types — a record with zero fields (valid PureScript, invalid GraphQL)
  • Invalid enum constructors — a sum type with constructors that carry data (only nullary constructors are valid GraphQL enum values)
  • GraphQL name conflicts — two different PureScript types mapping to the same GraphQL type name via IsGql
Modules
Dev.Client
Dev.Schema
Dev.Server
Prospero
Prospero.Bun
Prospero.CacheControl
Prospero.Client
Prospero.Client.GqlUnion
Prospero.Client.WebSocket
Prospero.Codegen
Prospero.Codegen.Main
Prospero.Crypto
Prospero.DataLoader
Prospero.Defer
Prospero.Directive
Prospero.Execution
Prospero.Fastify
Prospero.Federation
Prospero.GqlQuery
Prospero.GqlTypes
Prospero.GraphQLError
Prospero.GraphQLWS
Prospero.Http
Prospero.InputValue
Prospero.Introspection
Prospero.Metadata
Prospero.Om
Prospero.Parser
Prospero.Parser.AST
Prospero.Parser.GraphQL
Prospero.Parser.Lexer
Prospero.Parser.Monad
Prospero.Parser.Token
Prospero.PersistedQueries
Prospero.Relay
Prospero.ResponseValue
Prospero.RootResolver
Prospero.SDL
Prospero.Scalars
Prospero.Schema
Prospero.SchemaTransform
Prospero.Step
Prospero.Subscription
Prospero.Tracing
Prospero.Types
Prospero.Upload
Prospero.Validation
Prospero.VariantHelper
Prospero.WebSocket
Prospero.Wrapper
Dependencies