-
Notifications
You must be signed in to change notification settings - Fork 146
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
Cannot synthesize Real #368
Comments
At the moment, you will need to replace It's not an unreasonable feature request to ask that BSC allow For anyone interested in working on this feature, I'm attaching a small patch (bitstoreal_patch.txt) that Don Baltus wrote to allow
This patch also doesn't add |
Thanks for your reply! And for those code:
it can be passed when I am using the command Error: "Bits2Real.bs", line 21, column 35: (G0013)
Compile time expression did not evaluate:
Type: Prelude.Real
PrimBitsToReal (.Prelude.read ?64 rg1)
During elaboration of the interface method `get' at "Bits2Real.bs", line 8,
column 0.
During elaboration of `mkBits2Real' at "Bits2Real.bs", line 8, column 0. |
I would like to keep this issue open, because it is a legitimate feature request that someone else may be interested in later. |
Cannot synthesize
mkRealOperation': The interface method
addition' usestype `Prelude.Real' which is not in the Bits class.
I want to use Real to realize floating-point addition and multiplication, how to resolve Real in static elaboration?
Thanks!
The text was updated successfully, but these errors were encountered: