mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00

Implements the new `module` header syntax as described in "module and package changes" [1]: ``` module [Request, Response, req] ``` The old syntax should still work fine, and is automatically upgraded to the new one when running `roc format`. [1] https://docs.google.com/document/d/1E_77fO-44BtoBtXoVeWyGh1xN2KRTWTu8q6i25RNNx0/edit
9 lines
276 B
Text
9 lines
276 B
Text
module [char]
|
|
|
|
import pf.Effect
|
|
import Task
|
|
|
|
# line : Task.Task Str *
|
|
# line = Effect.after Effect.getLine Task.succeed # TODO FIXME Effect.getLine should suffice
|
|
char : Task.Task U8 *
|
|
char = Effect.after Effect.getChar Task.succeed # TODO FIXME Effect.getLine should suffice
|