Last active
March 2, 2018 00:21
-
-
Save friedbrice/5e9ec484ed7adc9b44365ff8ddef32d5 to your computer and use it in GitHub Desktop.
Script Templates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env stack | |
-- stack --resolver lts-10.3 --install-ghc runghc | |
import System.Environment (getArgs) | |
main = getArgs >>= traverse (\name -> putStrLn $ "Hello, " ++ name ++ "!") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
exec scala -nocompdaemon "$0" "$@" | |
!# | |
args.foreach(str => println(s"Hello, $str!")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment