1
1
mirror of https://github.com/github/semantic.git synced 2025-01-02 20:41:38 +03:00

Serialize field metadata.

This commit is contained in:
Rob Rix 2019-06-19 14:20:37 -04:00
parent caeff71a33
commit bb54b3094d
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -55,5 +55,8 @@ instance (GToSExpression f, GToSExpression g) => GToSExpression (f :*: g) where
instance GToSExpression U1 where
gtoSExpression _ _ = []
instance GToSExpression f => GToSExpression (M1 S s f) where
gtoSExpression = gtoSExpression . unM1 -- FIXME: show the selector name, if any
instance ToSExpression k => GToSExpression (K1 R k) where
gtoSExpression k = pure . toSExpression (unK1 k)