Vector of functions cannot be translated #25
The following code:
import CLaSH.Prelude topEntity :: Signal Int -> Signal Int topEntity = processor <^> 0 processor :: Int -> Int -> (Int, Int) processor s _ = (s', s') where s' = (work (3:>2:>1:>Nil))!0 work :: Vec 3 Int -> Vec 3 Int work xs = vzipWith sel xs funs where funs = fun:>fun:>fun:>Nil fun x = x + 1 sel x f = f x
Produces the following error:
It seems as if a vector of functions is not acceptable. If it should be possible; this is a bug?