dots-of-war/files/scripts/makeHaskellProject.sh

8 lines
164 B
Bash
Executable file

#!/bin/bash
stack new "$1"
cd "$1"
echo -e "cradle:\n stack:" >> hie.yaml
sed -i 's/^resolver: .*$/resolver: lts-15.0/' stack.yaml
stack setup
stack build --fast