feldspar-language-0.7: A functional embedded language for DSP and parallelism

Safe HaskellNone
LanguageHaskell2010

Feldspar.Core.Frontend.Condition

Synopsis

Documentation

condition :: Syntax a => Data Bool -> a -> a -> a Source

(?) :: Syntax a => Data Bool -> a -> a -> a infixl 1 Source

Condition operator. Use as follows:

cond1 ? ex1 $
cond2 ? ex2 $
cond3 ? ex3 $
  exDefault