mirror of
https://github.com/github/semantic.git
synced 2024-12-20 21:31:48 +03:00
🎩 @aaronlevin.
This commit is contained in:
parent
fd22620ccd
commit
cff9ac00ab
@ -5,6 +5,8 @@ import Data.Tagged
|
||||
import Prologue
|
||||
|
||||
-- | A type-safe, extensible record structure.
|
||||
-- |
|
||||
-- | This is heavily inspired by Aaron Levin’s [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)
|
||||
|
Loading…
Reference in New Issue
Block a user