File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed
Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,9 @@ mainctrl http this = extendThis { text: ""
1212 , submit: submit } this
1313 where
1414 url = " http://localhost:9501/examples/Backend/main.html"
15- submit a = runPromiseEC (do p <- liftPromiseEC $ get url http
16- q <- liftPromiseEC $ get url http
17- return q) (either (\e -> extendThis { value: " Failed to get" ++ url } this)
18- (\a -> extendThis { value: a." data" } this))
15+ submit a = runPromiseEC (liftPromiseEC $ get url http)
16+ (either (\e -> extendThis { value: " Failed to get" ++ url } this)
17+ (\a -> extendThis { value: a." data" } this))
1918
2019main = do
2120 m <- ngmodule' " backend" []
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ foreign import data ForeignResponse :: *
5050
5151foreign import unimplementedForeignResponse
5252 " " "
53- function foreignResponse (){
53+ function unimplementedForeignResponse (){
5454 return {
5555 };
5656 }
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ foreign import then2ECFn
103103 fa['then'](run(f), run(g));
104104 };
105105 }
106- " " " :: forall e a b c d . Fn3 (b -> d ) (a -> c ) (Promise a b ) (Eff e Unit )
106+ " " " :: forall e a b c . Fn3 (b -> c ) (a -> c ) (Promise a b ) (Eff e Unit )
107107
108108promiseEC :: forall e a b . Promise a b -> PromiseEC e a b
109109promiseEC = ErrorT <<< ContT <<< cb
You can’t perform that action at this time.
0 commit comments