1
1
mirror of https://github.com/github/semantic.git synced 2024-12-20 21:31:48 +03:00

🎩 @aaronlevin.

This commit is contained in:
Rob Rix 2016-06-16 11:54:32 -04:00
parent fd22620ccd
commit cff9ac00ab

View File

@ -5,6 +5,8 @@ import Data.Tagged
import Prologue
-- | A type-safe, extensible record structure.
-- |
-- | This is heavily inspired by Aaron Levins [Extensible Effects in the van Laarhoven Free Monad](http://aaronlevin.ca/post/136494428283/extensible-effects-in-the-van-laarhoven-free-monad).
data Record :: [*] -> * where
RNil :: Record '[]
RCons :: h -> Record t -> Record (h ': t)