Skip to content

Instantly share code, notes, and snippets.

View mikkelmilo's full-sized avatar

Milo mikkelmilo

  • Århus, Denmark
View GitHub Profile
@lynn
lynn / hm.hs
Last active July 29, 2023 13:48
A Haskell implementation of Hindley–Milner (including unification) using STRefs
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
import Control.Monad
import Control.Monad.Except