Skip to content

Commit 733218f

Browse files
committed
Updates from discussion
1 parent b716713 commit 733218f

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

examples/Backend/Main.purs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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

2019
main = do
2120
m <- ngmodule' "backend" []

src/Angular/Http/Internal.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ foreign import data ForeignResponse :: *
5050

5151
foreign import unimplementedForeignResponse
5252
"""
53-
function foreignResponse(){
53+
function unimplementedForeignResponse(){
5454
return {
5555
};
5656
}

src/Angular/Promise.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

108108
promiseEC :: forall e a b. Promise a b -> PromiseEC e a b
109109
promiseEC = ErrorT <<< ContT <<< cb

0 commit comments

Comments
 (0)