roc/examples/cli/false-interpreter/platform/PlatformTask.roc
2024-06-25 00:03:56 -07:00

21 lines
431 B
Text

hosted PlatformTask
exposes [openFile, closeFile, withFileOpen, getFileLine, getFileBytes, putLine, putRaw, getLine, getChar]
imports []
openFile : Str -> Task U64 *
closeFile : U64 -> Task {} *
withFileOpen : Str, (U64 -> Task ok err) -> Task {} *
getFileLine : U64 -> Task Str *
getFileBytes : U64 -> Task (List U8) *
putLine : Str -> Task {} *
putRaw : Str -> Task {} *
getLine : Task Str *
getChar : Task U8 *