Make shell.nix less broken (#510)
[hadrian.git] / build.stack.bat
1 @echo off
2 setlocal
3 rem Change the current directory to the one containing this script
4 cd %~dp0
5
6 rem Build Hadrian and dependencies and exit the script if the build failed
7 stack build
8 if %errorlevel% neq 0 exit /B %errorlevel%
9
10 rem Run Hadrian in GHC top directory forwarding additional user arguments
11 stack exec hadrian -- --lint --directory ".." %*