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

📝 the Semigroup instance for Concrete.

This commit is contained in:
Rob Rix 2019-08-06 13:44:21 -04:00
parent 82cb7e49b0
commit d600246663
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -48,6 +48,7 @@ data Concrete
| String Text
| Record Env
deriving (Eq, Ord, Show)
-- | We derive the 'Semigroup' instance for 'Concrete' to take the second argument. This is equivalent to stating that the return value of an imperative sequence of statements is the value of its final statement.
deriving Semigroup via Last Concrete
recordFrame :: Concrete -> Maybe Env