The result of a computation run only for its effect.
It stands in for Haskell's (); it is void so ordinary functions that return nothing fit without a cast.
()
void
import { IO, type Unit } from '@b-jones-rfd/func-help'const log = (msg: string): IO<Unit> => IO.from(() => { console.log(msg) }) Copy
import { IO, type Unit } from '@b-jones-rfd/func-help'const log = (msg: string): IO<Unit> => IO.from(() => { console.log(msg) })
The result of a computation run only for its effect.
It stands in for Haskell's
(); it isvoidso ordinary functions that return nothing fit without a cast.