Skip to content

Instantly share code, notes, and snippets.

@bitc
Created December 2, 2017 23:29
Show Gist options
  • Save bitc/9217dae4a7dee816a8bce9b67a37d41f to your computer and use it in GitHub Desktop.
Save bitc/9217dae4a7dee816a8bce9b67a37d41f to your computer and use it in GitHub Desktop.
Run Haskell script using stack
#!/usr/bin/env stack
{- stack
script
--resolver lts-9.14
--install-ghc
--package stm,async,shelly
-}
import System.Info
main = do
putStrLn "Hello World cool"
print (os, arch, compilerName, compilerVersion)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment