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

I want to see intermediate steps #37

Open
moldux-dartus opened this issue May 30, 2022 · 2 comments
Open

I want to see intermediate steps #37

moldux-dartus opened this issue May 30, 2022 · 2 comments

Comments

@moldux-dartus
Copy link

Sometimes this will produce very different point free code. Example:

λ :pf func f gs x = f $ map ($ x) gs

produces:

func = (. flip (map . flip id)) . (.)

It would be helpful if I could see the intermediate steps so I can better understand the transformation.

@moldux-dartus
Copy link
Author

Here is another example:

λ :pf func a b c = (!!1) $ sort [a,b,c]

produces:

func = ((((!! 1) . sort) .) .) . (. ((. return) . (:))) . (.) . (:)

@bmillwood
Copy link
Owner

I did spend some time working on this because it seems fun, but it also seems like a big thing, and I doubt I'm likely to finish particularly soon. Happy to see proposals!

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