1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 16:02:43 +03:00

Rename the If syntax selectors.

This commit is contained in:
Rob Rix 2017-03-26 21:17:02 -04:00
parent 6b1d830e0f
commit 8e9cc1607d

View File

@ -4,7 +4,7 @@ module Data.Syntax.Statement where
import Prologue
-- | Conditional. This must have an else block, which can be filled with some default value when omitted in the source, e.g. 'pure ()' for C-style if-without-else or 'pure Nothing' for Ruby-style, in both cases assuming some appropriate Applicative context into which the If will be lifted.
data If a = If { condition :: !a, thenBlock :: !a, elseBlock :: !a }
data If a = If { ifCondition :: !a, ifThenBody :: !a, ifElseBody :: !a }
deriving (Eq, Show)