👋 Hello World
The classic Hello World program in Unison is as simple as a call to printLine.
{IO, Exception}
indicates which abilities the program needs to do I/O and throw exceptions.
'
Distributed map-reduce
With a few lines of code, you can perform a distributed map-reduce using the Remote
ability.
Learn more about Remote and working with distributed datasets in Unison.
HTTP request
Perform effectful code, like HTTP requests with Abilities and Ability handlers.
Checkout more HTTP examples in the http library.
httpEx : '{IO, Exception} HttpResponse
httpEx : '{IO, Exception} HttpResponse
httpEx =
do Http.run do Http.get (parseOrBug "https://www.unison-lang.org")