hawk
hawk copied to clipboard
Haskell text processor for the command-line
``` $ echo "data Foo = forall a. Foo a" > ~/.hawk/prelude.hs $ hawk '"hello"' error parsing file /Users/gelisam/.hawk/prelude.hs:SrcLoc {srcFilename = "/Users/gelisam/.hawk/prelude.hs", srcLine = 3, srcColumn = 20}: Illegal data/newtype...
``` $ echo 'foo = "foo" "bar"' > ~/.hawk/prelude.hs /Users/gelisam/.hawk/prelude.hs:2:7: Couldn't match expected type `[Char] -> t0' with actual type `[Char]' The function `"foo"' is applied to one argument, but...
The fact that the following works is very important for interacting with a pipeline, and I'm not sure we have tests in place to make sure that it continues to...
I was quite happy to see that Hawk is being included, but less happy to see that the server has a hard time compiling it. http://hydra.nixos.org/job/nixpkgs/haskell-updates/haskellngPackages.haskell-awk.x86_64-linux
haskell-src-exts keeps adding constructors and arguments to its core datatypes. This constantly causes Hawk's Language.Haskell.Exts.Location module to break, as we list each constructor in order to extract location information. Worse:...
The test suite currently fails unless attoparsec and aeson are already installed.
``` $ echo "{-# LANGUAGE GADTs #-}" > ~/.hawk/prelude.hs $ hawk '"hello"' hello $ echo "{-# LANGUAGE GADT #-}" > ~/.hawk/prelude.hs $ hawk '"hello"' hawk: Prelude.read: no parse ```
Hawk is a little complex for new users and I think this is due to the lack of some starting points for our program. We have a nice documentation that...
I think we should change the examples directory and add some "real world" examples with a description. Examples are a very good way to understand how the developer uses the...
In #66, you mention that you would like the default no-flags behavior to be customizable. Here is how this customization could work while still allowing the default behaviour to depend...