1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 13:51:44 +03:00

Multiple bindings allowed in ForEach

This commit is contained in:
Timothy Clem 2017-07-06 09:43:19 -07:00
parent 7cdddebfce
commit 2d1596de3c

View File

@ -81,7 +81,7 @@ data For a = For { forBefore :: !a, forCondition :: !a, forStep :: !a, forBody :
instance Eq1 For where liftEq = genericLiftEq
instance Show1 For where liftShowsPrec = genericLiftShowsPrec
data ForEach a = ForEach { forEachBinding :: !a, forEachSubject :: !a, forEachBody :: !a }
data ForEach a = ForEach { forEachBinding :: ![a], forEachSubject :: !a, forEachBody :: !a }
deriving (Eq, Foldable, Functor, GAlign, Generic1, Show, Traversable)
instance Eq1 ForEach where liftEq = genericLiftEq