mirror of
https://github.com/github/semantic.git
synced 2024-12-24 23:42:31 +03:00
Define DoWhile syntax.
This commit is contained in:
parent
80ae9ffe4b
commit
6b1d830e0f
@ -19,7 +19,10 @@ newtype Yield a = Yield a
|
||||
|
||||
-- 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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user