-
Notifications
You must be signed in to change notification settings - Fork 126
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
[Parameterized Modules] newtype
crash
#812
Comments
Closing as |
In the current
This can be remediated by separating the functor and instantiation components of
...these modules load without crashing. However, when I try a concrete example...
...the REPL reports type matching errors:
I've seen other examples where |
Here is a minimized version of the problematic example:
My current hypothesis is that the problem is that newtype values are not instantiated correctly. |
Consider a parameterized block cipher specification and nested instantiation:
BlockCipher_.cry
_XORCipher_.cry
_XOR32Cipher.cry
Alas, uncommenting the indicated line in
BlockCipher_
causes a crash when loading_XOR32Cipher
:Modifying
_XOR32Cipher
to instantiateBlockCipher_
directly (with the same line uncommented) causes a similar crash.Given this issue, achieving the desired effect (to export an encapsulated block cipher instance, e.g. as a parameter for cipher modes) requires exporting aliases for
BlockCipher_
parameters...BlockCipher_.cry
...and wrapping
_XOR32Cipher
:The text was updated successfully, but these errors were encountered: