Logo

Getting started

  • Installation
  • Quickstart
  • Curry in ten minutes
  • Examples
  • Curry Primer
    • Curry Syntax
    • Curry Types
    • Curry Semantics

User guide

  • The Python API
  • Compilation Options
  • Search order and memory
  • The REPL
  • The Command-Line Interface

Reference

  • API Reference
  • Performance
  • Nightly history
  • The harness
  • The records
  • Status
  • Compatibility with PAKCS and KiCS2
  • Software Compatibility
  • Index

Project

  • Release Notes
  • Support
  • Contributing
  • Developer Setup
  • Developer Notes
  • The Curry Compilation Pipeline
  • Development Variables
  • Project Layout
  • Python package structure
  • License
  • Acknowledgements
Sprite User Guide
  • Curry Primer
  • View page source

Curry Primer

This primer teaches a Python programmer enough Curry to read Sprite’s examples and tests: syntax, types and the semantics of nondeterminism, free variables and set functions.

  • Curry Syntax
    • Built-in data types
    • User-defined data types
    • Defined operations
      • Rule guards
      • Pattern matching
    • Other constructs
      • let expressions
      • case expressions
      • where clauses
      • If-then-else expressions
  • Curry Types
    • Type inference
    • Function types
    • Polymorphism
  • Curry Semantics
    • Nondeterminism
      • Choices
      • Overlapping rules
    • Free variables
      • Functional patterns
    • Set functions
Previous Next

© Copyright 2026, Andrew Jost.

Built with Sphinx using a theme provided by Read the Docs.