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

Input expressions won't compile #60

Closed
ssadler opened this issue Aug 21, 2013 · 5 comments
Closed

Input expressions won't compile #60

ssadler opened this issue Aug 21, 2013 · 5 comments
Labels

Comments

@ssadler
Copy link
Owner

ssadler commented Aug 21, 2013

Why don't these work?

echo "abc" | hawk id

Won't compile:
    No instance for (System.Console.Hawk.Representable.Rows (a0 -> a0))

echo "abc" | hawk 'take 2 . repeat'

Won't compile:
    No instance for (System.Console.Hawk.Representable.Rows
                   (a0 -> [a0])) 
@ssadler
Copy link
Owner Author

ssadler commented Aug 21, 2013

I was thinking of merging my rendering code which works and is quite simple, but I'm not sure I agree with #47 and #52. I do agree with having a flag for unsplit input, and maybe one for words but thats about it.

@gelisam
Copy link
Collaborator

gelisam commented Aug 21, 2013

Isn't Representable doing basically the same thing as hsl's rendering code? Hmm, maybe you're not talking about what I think you're talking about.

@gelisam
Copy link
Collaborator

gelisam commented Aug 22, 2013

The -l flag (and a few qualifiers) already allows your expressions to type check. Do you have other examples of what you are trying to accomplish?

> echo "abc" | hawk -l id
abc
> echo "abc" | hawk -l 'L.take 2 . L.repeat'
abc
abc

@techtangents
Copy link

Both of these examples work for me with the "hsl" command.

$ echo '1234'  | hsl 'id'
1234

$ echo "abc" | hsl 'take 2 . repeat'
abc
abc

@gelisam
Copy link
Collaborator

gelisam commented Sep 20, 2013

The bug concerned the "merge" branch, in which @melrief and I were working on merging the hsl and hsp projects into a new command named "hawk". This effort has continued under the gelisam/hawk repository.

@ssadler, would you like me to close all the remaining merge-only issues on this repo?

@gelisam gelisam closed this as completed Sep 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants