Skip to content
Discussion options

You must be logged in to vote

You defined Scalar as a type synonym, not as a real type. That means it is like a macro, which can be inlined without changing the meaning of the code. That also means that it needs to be fully applied, can't be partially applied. BSC should have reported an error about the partial application, instead of an internal error. That is already open as Issue #221. (If you get an internal error, you can search for keywords from it, to see if there's an Issue or Discussion already open about it. For example, if you search for expandSyn or truncType, it brings up issue #221.)

The reason why you got a "vector of unknown size" error is because this instance is invalid:

instance Instr#(Add, ILen, Da…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@yuyuranium
Comment options

Answer selected by yuyuranium
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants