Skip to content
Halyard
Project
Source code on Codeberg (opens in new tab)

Search

Menu

Language Guide

This guide covers the core concepts and features of the Halyard programming language.

Overview

  • Guarantees — What the compiler guarantees, compared with Python, R, Julia, SQL/dbt and Stata

Fundamentals

  • Basics — Values, types, comments, and core language concepts
  • Variables — Declaring variables, type annotations, shadowing, and destructuring
  • Operators — Arithmetic, comparison, logical, string, list, and pipe operators
  • Functions — Defining functions, type signatures, higher-order functions, lambdas, and currying
  • Control Flow — If expressions, case expressions, and pattern-based branching

Data Structures

  • Types — Type aliases, enums, generics, records, and type inference
  • Collections — Lists, tuples, records, and common operations
  • Pattern Matching — Literals, constructors, guards, as-patterns, and exhaustiveness
  • Modules — Inline modules, file modules, imports, aliases, and exports
  • Error Handling — Understanding Halyard's error messages and common mistakes

Code Structure

  • Indentation and Scope — How indentation controls code structure, multiline arguments, and scoping rules

Data Science

Projects

  • Tasks — Composing programs from multiple files with compile-time task execution
  • Projects — Organizing code with manifests and permissions
  • Compliance Manifest — Run provenance for regulated pipelines

Tooling