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