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

something wrong with the core Template compiler #1

Open
iomeone opened this issue Apr 16, 2019 · 4 comments
Open

something wrong with the core Template compiler #1

iomeone opened this issue Apr 16, 2019 · 4 comments

Comments

@iomeone
Copy link

iomeone commented Apr 16, 2019

runTemplate :: String -> IO ()

if i call this function like :
runTemplate "main = if (and True False) 7 9 ;"

if will fall into infinite loop, there is something wrong with the core Template compiler .

@MQuy
Copy link
Owner

MQuy commented Apr 17, 2019

@iomeone, I guess that you don't define and

@iomeone
Copy link
Author

iomeone commented Apr 18, 2019

I'v define the and. and run the code using your repository.
I'm hundred percent there's some bug in your code.
But i'm not sure how to correct it.

@MQuy
Copy link
Owner

MQuy commented Apr 18, 2019

can you show your code? 🤔 I can check it

@iomeone
Copy link
Author

iomeone commented Apr 19, 2019

https://github.com/iomeone/test
build and run it use

stack build 
stack exec core

and will see the state print forever

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