$ cabal new-build
$ ./dist-newstyle/build/x86_64-osx/ghc-8.2.2/haskell-awk-1.1.1/build/hawk/hawk '2+2'
hawk: No package-db found. Did you install Hawk in an unusual way?
CallStack (from HasCallStack):
error, called at src/System/Console/Hawk/Sandbox.hs:81:14 in main:System.Console.Hawk.Sandbox
hawk uses its executable's location to guess where the corresponding package database is. This works with cabal sandboxes:
and with stack:
but not with cabal
new-build
: