mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
16 lines
297 B
Text
16 lines
297 B
Text
module [
|
|
line,
|
|
char,
|
|
]
|
|
|
|
import pf.PlatformTasks
|
|
|
|
line : {} -> Task Str *
|
|
line = \{} ->
|
|
PlatformTasks.getLine
|
|
|> Task.mapErr \_ -> crash "unreachable Stdin.line"
|
|
|
|
char : {} -> Task U8 *
|
|
char = \{} ->
|
|
PlatformTasks.getChar
|
|
|> Task.mapErr \_ -> crash "unreachable Stdin.char"
|