mirror of
https://github.com/github/semantic.git
synced 2024-12-03 00:16:52 +03:00
Align
This commit is contained in:
parent
e56c338c7e
commit
6c1cd03621
@ -234,7 +234,7 @@ instance (Monad m, MonadEvaluatable term Value m) => MonadValue Value m where
|
|||||||
|
|
||||||
asString v
|
asString v
|
||||||
| Just (String n) <- prjValue v = pure n
|
| Just (String n) <- prjValue v = pure n
|
||||||
| otherwise = fail ("expected " <> show v <> " to be a string")
|
| otherwise = fail ("expected " <> show v <> " to be a string")
|
||||||
|
|
||||||
ifthenelse cond if' else'
|
ifthenelse cond if' else'
|
||||||
| Just (Boolean b) <- prjValue cond = if b then if' else else'
|
| Just (Boolean b) <- prjValue cond = if b then if' else else'
|
||||||
|
Loading…
Reference in New Issue
Block a user