mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34: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
10 lines
234 B
Text
10 lines
234 B
Text
module [line, raw]
|
|
|
|
import pf.Effect
|
|
import Task exposing [Task]
|
|
|
|
line : Str -> Task {} *
|
|
line = \str -> Effect.map (Effect.putLine str) (\_ -> Ok {})
|
|
|
|
raw : Str -> Task {} *
|
|
raw = \str -> Effect.map (Effect.putRaw str) (\_ -> Ok {})
|