1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 06:11:49 +03:00

📝 Unit.

This commit is contained in:
Rob Rix 2017-12-21 09:42:10 -05:00
parent acf46ec14f
commit cae0325084

View File

@ -37,6 +37,7 @@ instance (Eq location) => Eq1 (Closure location) where liftEq = genericLiftEq
instance (Ord location) => Ord1 (Closure location) where liftCompare = genericLiftCompare
instance (Show location) => Show1 (Closure location) where liftShowsPrec = genericLiftShowsPrec
-- | The unit value. Typically used to represent the result of imperative statements.
data Unit term = Unit
deriving (Eq, Generic1, Ord, Show)