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

static symbol missing #158

Closed
luite opened this issue Apr 16, 2014 · 1 comment
Closed

static symbol missing #158

luite opened this issue Apr 16, 2014 · 1 comment
Labels

Comments

@luite
Copy link
Member

luite commented Apr 16, 2014

reported by @Ptival. Probably related to sinking static symbols or encoding static list arguments, caused by the static data encoding change.

-- This compiles correctly

module Main where

l = reverse [ ("a", "a") ]

main = do
  return ()

-- This fails with error:
-- encodeStatic: invalid static: h$$mainZCMainzisat_BJcgFM

module Main where

l = reverse [ ("a", "aa") ]

main = do
  return ()

-- Any string longer than 1 character seems to trigger errors
@luite luite added the bug label Apr 16, 2014
@luite luite closed this as completed in 38c0ad3 Apr 22, 2014
@luite
Copy link
Member Author

luite commented Apr 22, 2014

Problem turned out to be that the tables were built using the renamed vars as keys, but the Compactor used the original names to look them up.

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

No branches or pull requests

1 participant