Add instance Ix for Unsigned and Signed. - #1481
Conversation
martijnbastiaan
left a comment
There was a problem hiding this comment.
LGTM, could you add a changelog entry? See README.md at https://github.com/clash-lang/clash-compiler/tree/master/changelog.
|
Not to nitpick, but as you're not defining any of the GHC-specific unsafe |
That's fair, I'll do that. But hopefully we'll get |
I've done this just now. |
|
Cool! I think we can merge it after a CHANGELOG entry. |
But the git log shows that |
|
That's true, but we keep each entry as a file so we can easily backport / update the changelog later. See: |
This allows using `Signed n` and `Unsigned n` as `Data.Array` indices, for example in test benches that simulate memory.
The friction is real... |
ikr.. |
This allows using
Signed nandUnsigned nasData.Arrayindices,for example in test benches that simulate memory.