Scripting in Haskell
Writing scripts in Haskell using Stack is straight-forward and
reliable. We've made a screencast to demonstrate this:
Summary
Slides in the screencast cover:
- What Haskell is
- What Stack is
- We make a case for reproducible scripting
We cover the following example cases:
- Hello, World! as a Haskell script
- Generating a histogram of lines of a file
- Using FSNotify to watch a directory for any changes to
files
In summary, we show:
- Scripting in Haskell is reproducible: it works over time
without bitrot.
- It's easy to do, just add a shebang
#!/usr/bin/env
stack
to the top of your file.
- We can use useful, practical libraries that are not available
in traditional scripting languages.
- Our script is cross-platform: it'll work on OS X, Linux or
Windows.
Subscribe to our blog via email
Email subscriptions come from our Atom feed and are handled by Blogtrottr. You will only receive notifications of blog posts, and can unsubscribe any time.
Do you like this blog post and need help with Next Generation Software Engineering, Platform Engineering or Blockchain & Smart Contracts? Contact us.