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

Using G2 with library data structures #246

Open
GrootProgrammer opened this issue Sep 23, 2024 · 0 comments
Open

Using G2 with library data structures #246

GrootProgrammer opened this issue Sep 23, 2024 · 0 comments

Comments

@GrootProgrammer
Copy link

When attempting to use data structures from libraries like GHC.Natural G2 (specifically G2LH) in this case gives an error.

Minimal code to generate the error:

module Example.Test where

import GHC.Natural

f :: Natural -> Natural -> Natural
f a b = a + b

running G2LH:

cabal run G2LH src/Example/Test.hs f

Gives us:

G2LH: mkStrict: failed to find walker with type: Name "Natural" (Just "GHC.Natural") 3674937295934324786 Nothing
CallStack (from HasCallStack):
  error, called at src/G2/Language/Expr.hs:622:24 in g2-0.2.0.0-72008a90f4e6010c4d8470ec404013344a872125df81931e3aabcbda361004aa:G2.Language.Expr

Is there a way to run G2 with libraries or is this not supported in any way?

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

1 participant