r/purescript • • Oct 11 '15

Elm Architecture in PureScript IV: Effects (last one for a while, I promise)

http://www.parsonsmatt.org/programming/2015/10/11/elm_architecture_in_purescript_iv:_effects.html
11 Upvotes

20 comments sorted by

View all comments

Show parent comment

1

u/vagif Oct 14 '15

That sounds very good. Question about elm-reactor though. I do not see how would it work if your app needs to be hosted on server and send/recieve ajax calls from it. It looks to me elm-reactor can only work for apps that do not interact with any server?

1

u/ephrion Oct 14 '15

Ajax works just fine on reactor, check out the fifth example in the Elm architecture tutorial.

1

u/vagif Oct 14 '15

Ah yes i see: Http.url "http://api.giphy.com/v1/gifs/random"

It is using a full url. I do not think it would work with the application that supposed to interact with the server it is hosted on, because in that case urls are relative.