1
1
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:
Rob Rix 2017-03-26 21:16:01 -04:00
parent 80ae9ffe4b
commit 6b1d830e0f

View File

@ -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)