Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RTree Bundle instance is too strict #871

Closed
leonschoorl opened this issue Oct 25, 2019 · 1 comment
Closed

RTree Bundle instance is too strict #871

leonschoorl opened this issue Oct 25, 2019 · 1 comment
Labels

Comments

@leonschoorl
Copy link
Member

Clash.Prelude> t = pure False :: RTree 1 Bool
Clash.Prelude> sampleN @System 1 $ fromList [t]
[<False,False>]

Clash.Prelude> sampleN @System 1 $ bundle $ unbundle $ fromList [t]
*** Exception: X: finite list
@leonschoorl
Copy link
Member Author

For Vec this works fine:

Clash.Prelude> v = pure True :: Vec 1 Bool
Clash.Prelude> sampleN @System 1 $ fromList [v]
[<True>]
Clash.Prelude> sampleN @System 1 $ bundle $ unbundle $ fromList [v]
[<True>]

martijnbastiaan pushed a commit that referenced this issue Oct 29, 2019
This fixes various strictness problems with 'lazyT', 'ensureSpine',
'bundle', ...
martijnbastiaan pushed a commit that referenced this issue Oct 29, 2019
This fixes various strictness problems with 'lazyT', 'ensureSpine',
'bundle', ...
martijnbastiaan pushed a commit that referenced this issue Oct 29, 2019
This fixes various strictness problems with 'lazyT', 'ensureSpine',
'bundle', ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant