test.nim: Cleaner example of usage
This commit is contained in:
@ -2,8 +2,9 @@ import std/sugar
|
||||
|
||||
# Declarations
|
||||
|
||||
type FileDesc* = enum STDIN, STDOUT, STDERR
|
||||
type IO*[T] = proc(): T
|
||||
type
|
||||
FileDesc* = enum STDIN, STDOUT, STDERR
|
||||
IO*[T] = proc(): T
|
||||
|
||||
func flatmap*[T, U](io: IO[T], fn: T -> IO[U]): IO[U]
|
||||
func lift*(fn: proc(): void): IO[void]
|
||||
|
||||
Reference in New Issue
Block a user