hawk
hawk copied to clipboard
Awk for Hoodlums
If the user expression has type `a` instead of `a -> b`, implicitly add ignore the input by adding a call to `const`.
If the expression has type `a -> b` instead of `[a] -> [b]`, implicitly map over the lines.
It's a bit sad that #24 will fail if there are zero lines. Maybe we could detect whether the output type is an instance of `Monoid`, and start the `fold`...
This is the first thing the user will see when he hears of our project, and will determine whether the user closes the tab, stars the project, or installs it....
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...
options like OverloadedStrings, NoExplicitPrelude, etc.
[This](http://hackage.haskell.org/package/Hawk) might be problematic...
As previously discussed, one way to improve performance, assuming profiling reveals that restarting ghc is the limiting factor, would be to run a daemon with the prelude pre-loaded. I stumbled...
I don't understand where the extra newline comes from. ``` > seq 3 | hsl 'unlines . P.reverse . lines' 3 2 1 > ``` In `hsl`, there was no...
Currently `Hawk` exposes some modules independently by what the user set on its configuration file (`Prelude.hs`). This is due to the fact that I considered those modules essential for any...