mirror of
https://github.com/github/semantic.git
synced 2025-01-01 19:55:34 +03:00
📝 HasField.
This commit is contained in:
parent
c4eb6241cb
commit
fd22620ccd
@ -24,6 +24,7 @@ field = Tagged
|
|||||||
|
|
||||||
-- Classes
|
-- Classes
|
||||||
|
|
||||||
|
-- | HasField enables indexing a Record by (phantom) type tags.
|
||||||
class HasField (fields :: [*]) (field :: *) where
|
class HasField (fields :: [*]) (field :: *) where
|
||||||
getField :: Record fields -> field
|
getField :: Record fields -> field
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user