Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

Example FIR.hs does not work. #4

Open
ghost opened this issue Oct 10, 2016 · 1 comment
Open

Example FIR.hs does not work. #4

ghost opened this issue Oct 10, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 10, 2016

This issue exists on Windows 10 x64 and on Ubuntu 16.04 LTS x64.

When I type:

clash --interactive FIR.hs

Then this is the result:

CLaSHi, version 0.6.23 (using clash-lib, version 0.6.21):
http://www.clash-lang.org/  :? for help
[1 of 1] Compiling FIR              ( FIR.hs, interpreted )

FIR.hs:15:27:
    Could not deduce (KnownNat (n + 1)) arising from a use of `bundle'
    from the context (Default a, KnownNat n, SaturatingNum a)
      bound by the type signature for
                 fir :: (Default a, KnownNat n, SaturatingNum a) =>
                        Vec (n + 1) a -> Signal a -> Signal a
      at FIR.hs:(11,8)-(12,44)
    In the second argument of `(<$>)', namely `bundle xs'
    In the expression: dotp coeffs <$> bundle xs
    In an equation for `y_t': y_t = dotp coeffs <$> bundle xs
Failed, modules loaded: none.
CLaSH.Prelude>
@christiaanb
Copy link
Member

Thanks for the report! I've updated the link to point to the correct version. This one should work: https://raw.githubusercontent.com/clash-lang/clash-compiler/0.6/examples/FIR.hs

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant