1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00

Add a typeclass for fields.

This commit is contained in:
Rob Rix 2016-06-16 17:02:17 -04:00
parent b18a30b441
commit 2822ec2f51

View File

@ -40,6 +40,9 @@ type family ValueOf field
class HasField (fields :: [*]) (field :: *) where
getField :: Record fields -> field
class IsField field where
getValue :: field -> ValueOf field
-- Instances