@L29Ah Does it? I can write a function that calls await, and run it from both the Async monad and the IO monad? I bet I'll need some wrappers for that to work.
As for const, Haskell dodges the problem by not having const functions at all.
@minoru In haskell a function doesn't need any async-specific keywording or typing to be ran from async contexts.
@minoru https://hackage.haskell.org/package/async-2.2.4/docs/Control-Concurrent-Async.html see the High-level API example and withAsync signature
QOTO: Question Others to Teach Ourselves. A STEM-oriented instance.
An inclusive free speech instance.
All cultures and opinions welcome.
Explicit hate speech and harassment strictly forbidden.
We federate with all servers: we don't block any servers.