Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit d600246

Browse files
committed
📝 the Semigroup instance for Concrete.
1 parent 82cb7e4 commit d600246

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

semantic-core/src/Analysis/Concrete.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ data Concrete
4848
| String Text
4949
| Record Env
5050
deriving (Eq, Ord, Show)
51+
-- | 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.
5152
deriving Semigroup via Last Concrete
5253

5354
recordFrame :: Concrete -> Maybe Env

0 commit comments

Comments
 (0)