1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 10:15:55 +03:00

Update Precise.hs

Define a GToSExpression instance for Rec1.
This commit is contained in:
Rob Rix 2019-10-03 02:40:44 -04:00
parent 4b0ec75528
commit feac508bb5
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -67,3 +67,6 @@ instance Show k => GToSExpression (K1 R k) where
instance GToSExpression Par1 where
gtoSExpression _ _ = []
instance ToSExpression t => GToSExpression (Rec1 t) where
gtoSExpression (Rec1 t) = pure . toSExpression t