| Copyright | (c) Winterland, 2016 |
|---|---|
| License | BSD |
| Maintainer | drkoster@qq.com |
| Stability | stable |
| Portability | PORTABLE |
| Safe Haskell | Safe |
| Language | Haskell2010 |
If
Description
Documentation
(?) :: Bool -> a -> a -> a infixr 1 Source
This is the if-then-else operator,
With it you can write xxx ? yyy $ zzz instead of if xxx then yyy else zzz.
Following may or may not be cleaner to you ; )
isFoo <- checkFoo
isFoo ? foo
$ bar