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:
parent
6b1d830e0f
commit
8e9cc1607d
@ -4,7 +4,7 @@ module Data.Syntax.Statement where
|
|||||||
import Prologue
|
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.
|
-- | 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)
|
deriving (Eq, Show)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user