Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Prospero logo

Introduction

Prospero is a configuration language designed to help you generate static resources such as JSON and YAML easily, safely and reliably. To this end, Prospero is statically typed and has powerful type inference so that you can write complex configurations with minimal boilerplate but retain robust guarantees about type safety.

Prospero also provides strong runtime guarantees, ensuring that all programs terminate by allowing only structural recursion. Configuration that loops forever is one of the dangers of using more traditional programming languages in this problem space: Prospero prevents the problem by design.

Prospero has the following features:

  • Parametric polymorphism (including higher-kinded types)
  • Structural Records
  • Algebraic Data Types (ADTs)
  • Pattern matching
  • Type Classes
  • Rank-N types
  • Units of Measure
  • Structural recursion