mirror of
https://github.com/github/semantic.git
synced 2024-12-26 00:12:29 +03:00
Define DoWhile syntax.
This commit is contained in:
parent
80ae9ffe4b
commit
6b1d830e0f
@ -19,7 +19,10 @@ newtype Yield a = Yield a
|
|||||||
|
|
||||||
-- Loops
|
-- Loops
|
||||||
|
|
||||||
data While a = While !a !a
|
data While a = While { whileCondition :: !a, whileBody :: !a }
|
||||||
|
deriving (Eq, Show)
|
||||||
|
|
||||||
|
data DoWhile a = DoWhile { doWhileCondition :: !a, doWhileBody :: !a }
|
||||||
deriving (Eq, Show)
|
deriving (Eq, Show)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user