You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering if it's not too late to add a trace command--a function that prints x to the console and returns x. For example, let's assume that * is the trace command in the following:
Husk.exe -u w*m↔*w "How is this even possible?"["How", "is", "this", "even", "possible?"]["woH", "si", "siht", "neve", "?elbissop"]woH si siht neve ?elbissop
I think a trace command would make it much easier to debug programs and to learn Husk.
I tried setting debug level to 1 and 2 in Debug.hs, but those options don't do what I want.
It's also possible that the trace command already exists in Husk, but I missed it?
Thank you.
The text was updated successfully, but these errors were encountered:
Hi, thanks for taking interest in Husk!
The trace command is not currently included, due to the focus being on pure functions as much as possible, but a future update with some impure commands is planned.
At the moment the project is on a (way too long) break due to a bunch of things going on in life, but I'll try to come back to it as soon as circumstances allow and implement this and more.
Hello and thank you for creating Husk.
I was wondering if it's not too late to add a trace command--a function that prints x to the console and returns x. For example, let's assume that
*
is the trace command in the following:I think a trace command would make it much easier to debug programs and to learn Husk.
I tried setting
debug
level to 1 and 2 in Debug.hs, but those options don't do what I want.It's also possible that the trace command already exists in Husk, but I missed it?
Thank you.
The text was updated successfully, but these errors were encountered: