hawk
hawk copied to clipboard
Get error after installing via stack
Install
stack install haskell-awk
Use
01:28 $ hawk '"hello world"'
error: Won't compile:
<no location info>:
Could not find module ‘System.Console.Hawk.Runtime.Base’
Use -v to see a list of the files searched for.
Does work directly from stack via
stack exec hawk '"hello world"'
Prefixing all calls to hawk with stack exec
has not proved useful.
I am told the problem is because hawk is assuming that the executable is located in a position relative to its data files... And that is should do something like:
I already added support for stack in #150, but my last comment in that thread seems to indicate that I've never released the fixed version. I'll do that now. Thanks for reporting the problem!
Hmm, the tests don't pass on TravisCI and I don't understand why. They pass on my machine. It might take a little longer before I can release...
I "fixed" the tests by disabling them in #173 (I'll re-enable them in #174). This means I can finally release 1.1.2!!
Huh. I didn't release 1.1.2, then I worked on other things for a while, now I'm coming back to work on hawk, I upgraded to a more recent ghc, I'm ready to release a new version, and I'm like "who disabled the tests?? I can't release like this!". So I'm quite surprised to read in the comment above that I disabled the tests in order to make a release? What?