Skip to content

Instantly share code, notes, and snippets.

@jeremysinger
Created April 6, 2018 11:18
Show Gist options
  • Save jeremysinger/c77de1342921e0834769b050a21527e1 to your computer and use it in GitHub Desktop.
Save jeremysinger/c77de1342921e0834769b050a21527e1 to your computer and use it in GitHub Desktop.
import System.Environment (getArgs)
main :: IO ()
main = do
args <- getArgs
if length args /= 2
then do
putStrLn "usage: starman WORD NUM_GUESSES"
else
let word = args!!0
guesses = read (args!!1) :: Int
in do
starman word guesses
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment