nowfound

Life & fun · August 27, 2022

E-graphs and equality saturation in Haskell

Fast equality saturation in Haskell

E-graphs and equality saturation in Haskell launched on August 27, 2022 with 22 votes, #856 of 3,307 launches that month and more than 75% of that year's launches. The site was still online in September 2026, 4 years on.

In plain words

This Haskell library implements e-graphs and equality saturation, techniques for working with equivalence classes of expressions. It is designed for developers building compilers, optimizers, or symbolic reasoning systems in Haskell. The library provides data structures and algorithms to efficiently represent and manipulate sets of equivalent expressions, enabling automated program transformation and optimization through saturation-based methods.

written from the facts on this page · September 2026

From the sources

Fast equality saturation and equality graphs based on "egg: Fast and Extensible Equality Saturation" and "Relational E-matching". This package provides e-graphs (see Data.Equality.Graph ), a data structure which efficiently represents a congruence relation over many expressions. For a monadic interface to e-graphs check out Data.Equality.Graph.Monad (home to the convenient function represent ). Secondly, it provides functions for doing equality saturation (see Data.Equality.Saturation ), an optimization/term-rewriting technique that applies rewrite rules non-destructively to an expression represented in an e-graph until saturation, and then extracts the best representation. Equality…from hackage.haskell.org

Does a similar job

all alternatives →

More life & fun this month

the category →

Source: Show HN post ↗

Launched alongside, August 2022

the whole month →
  • Xnapper▲1,517

    Take beautiful screenshots instantly

    Work · 2022 · xnapper.com

  • Gamma▲1,169

    Auto-generate decks, docs & social posts inside any workflow

    Work · 2022 · gamma.app

  • Threado▲921

    The command center for community builders

    Life & fun · 2022

  • Build remote engineering teams in 24 hours

    Dev tools · 2022 · remotebase.com

  • Convert Figma designs into Flutter 3.0 & React code rapidly

    Dev tools · 2022 · dhiwise.com

  • PA

    Hey HN, I've been working on https://pornpen.ai, a site for generating adult images. Please only visit the site if you are 18+ and willing to look at NSFW images. This site is an experiment using newer text-to-image models. I explicitly removed the ability to specify custom text to avoid harmful imagery from being generated. New tags will be added once the prompt-engineering algorithm is fine-tuned further. If the servers are overloaded, take a look at the feed and search pages to look through past results. For comments/suggestions/feedback please visit…

    AI · 2022 · pornpen.ai