-
Notifications
You must be signed in to change notification settings - Fork 2
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
move post-processing inside hint #40
Comments
We can't have an unqualified Prelude yet, as it would conflict with ByteString's many existing bindings, such as |
New branch, "qualify_bytestring", with a proof-of-concept in which I move all the post-processing inside What do you guys think, is this the way forward? Should I continue working on this branch to bring back the features I have temporarily removed, or should we try to fix |
I think yours is a clever solution @gelisam. I used a similar solution when I had the problem with the output. When I started hsp, the expression to evaluate had type I think we should stick with your solution, > hawk --input-reader System.IO.getContents --output-writer System.IO.putStrLn "show . map (\w -> (head w,length w)) . group . sort . concatMap words . lines" The example whould give you a vague idea of what I have in mind. Imagine if we give the possibility to the user to define:
|
the refactoring has introduced a few regressions, but I will create new bugs for them instead of cluttering this thread. closing. |
If the user does not mention Prelude in
~/.hawk/prelude.hs
, import it unqualified.If the user imports the Prelude unqualified, import it unqualified.
If the user imports the Prelude qualified, import it with the same qualifier.
The text was updated successfully, but these errors were encountered: