Skip to content

Instantly share code, notes, and snippets.

@Muratam
Created January 23, 2016 18:01
Show Gist options
  • Save Muratam/d143b7c2dfeced691317 to your computer and use it in GitHub Desktop.
Save Muratam/d143b7c2dfeced691317 to your computer and use it in GitHub Desktop.
Run Haskell ,Ruby For VSCODE Runner
@echo off
if "%~dpnx1" equ "" goto :eof
cd "%~dp1"
setlocal
set tempfile=%date:~4%%time::=%
set tempfile=%tempfile:/=%
set tempfile=%tempfile:.=%
set tempfile=%tempfile: =%
ghc -o %tempfile%.exe --make "%~dpnx1"
%tempfile%.exe
del %tempfile%.exe
del %~n1.hi
del %~n1.o
endlocal
@echo off
cd "%~dp1"
ruby "%~dpnx1"
cd C:\
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment