Skip to content

Instantly share code, notes, and snippets.

@kindaro
kindaro / DigitalPlumber.hs
Last active September 12, 2020 17:20 — forked from IronGremlin/DigitalPlumber.hs
Attempt at recursion-schemes
import qualified Data.Set as S
import qualified Data.Map.Strict as M
import Data.List.Split (splitOn)
import Data.List (stripPrefix)
import Data.Maybe (fromJust)
newtype Fix f = In { out :: f (Fix f) }
type Algebra f a = f a -> a