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

Extracting [hexDigitToN] in Haskell creates Data.Bits.testBit and Data.Char.ord #11

Open
vmurali opened this issue Jul 6, 2018 · 1 comment

Comments

@vmurali
Copy link
Contributor

vmurali commented Jul 6, 2018

Since the generated Haskell does not import Data.Bits.testBit and Data.Char.ord, the overall compilation of the Haskell program fails. Any ideas to avoid generating these functions during Extraction?

@samuelgruetter
Copy link
Contributor

It looks like there's no option to specify additional imports to be put at the top of the generates haskell files, so you'd have to add the required imports yourself afterwards (eg like Tej).

But maybe if you're lucky you could just use something like Extract Constant Ox => someHaskellCode, where someHaskellCode only uses functions imported by default and converts a hex sring to an int, maybe using readHex?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants