mkasberg / script-seed

🌱 Seed scripts for popular (& unpopular) scripting languages.
https://mkasberg.github.io/script-seed/
MIT License
11 stars 23 forks source link

Add Haskell Seed Script #23

Open mkasberg opened 6 years ago

mkasberg commented 6 years ago

Add a Haskell "seed" script to the seeds folder. Basically, this would be an executable Haskell file (with #!/usr/bin/env stack that parses some simple command-line arguments (like -h or -t, see other scripts as examples) and prints a sentence or two to the command line. It's intended to demonstrate how to parse command line arguments and print something to the console in Haskell.

This might help: https://haskell-lang.org/get-started

See CONTRIBUTING.md, and feel free to ask for help or clarification here.

As a rough example, see #26.

mkasberg commented 2 years ago

E.x. Install haskell-platform with apt-get in the Dockerfile and use this as a starting point:

#!/usr/bin/env runhaskell

main :: IO ()
main = putStrLn "Hello, World!"