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

Parse error when one cell contains multiple definitions with quasiquotes #1373

Open
SmartHypercube opened this issue Sep 26, 2022 · 1 comment

Comments

@SmartHypercube
Copy link
Contributor

SmartHypercube commented Sep 26, 2022

I wish to be able to copy-paste an entire module's code, only stripping the module...where part at the beginning, and run it in one cell. This can greatly help debugging, since I will be able to easily modify it, split it into multiple cells, and re-run any part. However, many of my function definitions contain quasiquotes and currently ihaskell cannot correctly process them.

Steps to reproduce

First cell:

:extension TemplateHaskell

Second cell:

a = [|()|]
b = [|()|]

Expected result

Both cells run without problem.

Actual result

Parse error (line 2, column 3): parse error on input ‘=’
@vaibhavsagar
Copy link
Member

Maybe this is a problem with joinQuasiquotes?

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