mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +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
7 lines
121 B
Text
7 lines
121 B
Text
module [Program]
|
|
|
|
Program model : {
|
|
init : {} -> model,
|
|
update : model, Str -> model,
|
|
view : model -> Str,
|
|
}
|