mirror of
https://github.com/github/semantic.git
synced 2024-12-30 02:14:20 +03:00
Add a type family for monotypes.
This commit is contained in:
parent
ba1fc277eb
commit
b18a30b441
@ -1,4 +1,4 @@
|
||||
{-# LANGUAGE DataKinds, FlexibleContexts, GADTs, GeneralizedNewtypeDeriving, KindSignatures, MultiParamTypeClasses, TypeOperators #-}
|
||||
{-# LANGUAGE DataKinds, FlexibleContexts, GADTs, GeneralizedNewtypeDeriving, KindSignatures, MultiParamTypeClasses, TypeFamilies, TypeOperators #-}
|
||||
module Data.Record where
|
||||
|
||||
import Prologue
|
||||
@ -29,6 +29,11 @@ field :: b -> a :=> b
|
||||
field = Field
|
||||
|
||||
|
||||
-- Families
|
||||
|
||||
type family ValueOf field
|
||||
|
||||
|
||||
-- Classes
|
||||
|
||||
-- | HasField enables indexing a Record by (phantom) type tags.
|
||||
|
Loading…
Reference in New Issue
Block a user