Skip to content

Instantly share code, notes, and snippets.

@ItsMeijers
ItsMeijers / RecSchemesTypecheck.hs
Created January 23, 2019 10:57 — forked from sergv/RecSchemesTypecheck.hs
Use recursion schemes to add type information to expressions in a modular way
----------------------------------------------------------------------------
-- Tested with ghc 8.2.2
----------------------------------------------------------------------------
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TupleSections #-}