-
Notifications
You must be signed in to change notification settings - Fork 107
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
Attempt to write to file produces llvm undefined ref error #311
Comments
Not the greatest error message, but the short story is that we use these files like extensions of the environment -- so they work differently as global variables, and reference types get resolved through them to depend on the files they index into (a limited form of dependent type). We could use better syntax around this, but you can get a file like this with:
|
Thanks. It seems that if I want to store a series, and append to it like this, I probably shouldn't choose an array. What would be the efficient solution here? (I also just tried to store a list in the say way, but storeAs complains about constraints
|
Right, the array type requires that a definite length is given, so if you want to store data without a definite length then you need a different type. One approach taken in the We don't usually do the producer side from hobbes, so this is a little awkward from neglect, but it could be cleaned up with a little bit of syntax. Basically, here's one way to do what you're describing:
That gets you initialized to an empty list of batches, and then you can build up from there:
|
I'm trying to write structured data to a file. The below looks like it might work from the types but causes "Fatal error: Internal error, reference to undefined variable: .t17844.rv0" when run through hi.
x :: [int] -> ()
x d = let f = (writeFile("test1") :: ((file) _ {vs:[int]@?})) in f.vs <- store(d)
The text was updated successfully, but these errors were encountered: