Skip to content
This repository has been archived by the owner on Sep 7, 2018. It is now read-only.

window could have simpler signature #110

Open
ra1u opened this issue Jun 10, 2017 · 1 comment
Open

window could have simpler signature #110

ra1u opened this issue Jun 10, 2017 · 1 comment

Comments

@ra1u
Copy link

ra1u commented Jun 10, 2017

current

window :: (KnownNat n, Default a)
       -> Signal a               
       -> Vec (n + 1) (Signal a)   

proposed

window :: (KnownNat n, Default a)
       -> Signal a               
       -> Vec n (Signal a)   

This makes auto type deduction simpler and possible in cases where (n+1) becomes unmanageable.

Possible implementation:

window = iterateI (register def)

@ra1u ra1u changed the title window should have simpler signature window could have simpler signature Jun 10, 2017
@christiaanb
Copy link
Member

ra1u, you are correct, I'll put it on my todo list.

thoughtpolice added a commit to thoughtpolice/clash-prelude that referenced this issue Sep 3, 2017
Closes clash-lang#110.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
thoughtpolice added a commit to thoughtpolice/clash-prelude that referenced this issue Sep 3, 2017
Closes clash-lang#110.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
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

2 participants