mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-20 07:17:50 +03:00
Use fx.Effect instead of Effect
This commit is contained in:
parent
db69ae1db1
commit
6eaf2c7f80
@ -1,6 +1,6 @@
|
||||
interface Cmd
|
||||
exposes [ Cmd, none, map, putLine, getLine, always, after ]
|
||||
imports [ Effect ]
|
||||
imports [ fx.Effect ]
|
||||
|
||||
Cmd a : Effect.Effect a
|
||||
|
||||
@ -15,7 +15,7 @@ getLine = \toMsg ->
|
||||
Effect.map Effect.getLine toMsg
|
||||
|
||||
putLine : Str -> Cmd {}
|
||||
putLine = \line -> Effect.putLine line
|
||||
putLine = \line -> Effect.putLine line
|
||||
|
||||
map : Cmd a, (a -> b) -> Cmd b
|
||||
map = \cmd, transform -> Effect.map cmd transform
|
||||
|
@ -2,7 +2,7 @@ platform folkertdev/foo
|
||||
requires {model=>Model, msg=>Msg}{foo:Str}
|
||||
exposes []
|
||||
packages {}
|
||||
imports [Cmd]
|
||||
imports [ Cmd ]
|
||||
provides [ mainForHost ]
|
||||
effects fx.Effect
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user