-
Notifications
You must be signed in to change notification settings - Fork 2
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
Prelude.undefined with a build executable. #33
Comments
Thank you very much for the bug report @locallycompact , I'll check it out. |
Okay, I see exactly the same thing that you're seeing, thanks for this reproduction repo. Here's a clue; The bracevar = Text.Megaparsec.try $ between (string "{{") (string "}}") (T.pack <$> many (alphaNumChar <|> spaceChar)) I think what's going on here is that I forgot to wrap the |
That doesn't explain why |
So, I haven't yet been able to figure out why Even so, your bug report did reveal something which is definitely wrong, and which I've fixed in v1.4.3.0, and I'm pretty sure that if you upgrade to the new version then you won't see this problem again. If you don't want to wait for the new version to hit Stackage, this
I'm going to leave this issue open. |
(Note to self: I compared the versions of every library in the package databases of the non-failing test and replace-megaparsec-bug and they were the same) |
Hi, I have some bizarre behaviour that I pushed to this repository.
https://github.com/locallycompact/replace-megaparsec-bug
I am on NixOS so my commands are with
--nix
If I build with
stack --nix build
and then runstack --nix exec -- replace-megaparsec-bug-exe
I get a callstack with Prelude.undefined.However if I run the executable
./Script.hs
as a stack script with the exact same content, it executes and returns.The text was updated successfully, but these errors were encountered: