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

📝 HasField.

This commit is contained in:
Rob Rix 2016-06-16 11:53:21 -04:00
parent c4eb6241cb
commit fd22620ccd

View File

@ -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