Conversation
Ideally we should prefer a minifier that calls for GHC to parse the file and then define a custom printer for GHC's internal representation. But for now this.
|
Heya folks! This is a poorly written program, but it works. You need to add curled braces and semicolons over all your program, so that it becomes white space insensitive. Then the minifier will turn it into a brick of inscrutable code no more than 80 characters wide. Talk to me about possible improvements! |
|
Interesting! Thanks! |
|
I don't have details, but FWIW it did not produce compiling code for me the two times I tried it. Would be good to have more test reports. |
|
@simonmichael There are two ways my minifier can break.
Yes, this is not a smart minifier… I put it together as fast as I can, to have some estimate of how much I can fit into a 10 lines game. I shall hopefully do a better minifier later. I want to use GHC lexer but it is not exactly easy. |
Ideally we should prefer a minifier that calls for GHC to parse the file and then define a custom printer for GHC's internal representation. But for now this.