Haskell Shell Helpers
Find a file
2018-07-12 15:19:57 +02:00
app Supply preArgs to owasp dependency checker 2018-07-12 14:09:23 +02:00
src Remove emptyErrorText :: Either a Text -> Text 2018-07-12 15:19:57 +02:00
test stack new hsh -p "year:2016" 2016-09-19 12:06:27 +02:00
.gitignore .gitignore 2018-07-12 14:09:13 +02:00
hsh.cabal Move ANSIColourLib to ps1 because it is prompt-specific 2018-07-12 14:09:49 +02:00
LICENSE stack new hsh -p "year:2016" 2016-09-19 12:06:27 +02:00
README.md Upgrade to GHC 8.0.1 / Stackage lts-7.24 2018-07-12 14:09:49 +02:00
Setup.hs stack new hsh -p "year:2016" 2016-09-19 12:06:27 +02:00
stack.yaml Upgrade to GHC 8.0.2 / Stackage lts-9.21 / Turtle 1.3.6 2018-07-12 14:38:02 +02:00

Haskell Shell Helpers

Sure, this could also be done with a simple bash alias.

But is your bash alias type-checked?

Building and Running

stack build && stack exec hsh

Build the Executable using Stack within Docker

$ docker run -v ~/.stack:/root/.stack -v ~/.local/bin:/root/.local/bin -v /path/to/hsh:/hsh -it --rm haskell:8.0.1 /bin/bash
$ cd /hsh
$ stack config set system-ghc --global true
$ stack install --allow-different-user

This will copy the hsh executable to ~/.local/bin