Hi,
I started using haste for a small project recently. I want to load some data from an URL.
I tried to use simpleHTTP from Network.HTTP but I get an error "Uncaught T2 ..."
A minimal example is
module Main where
import Network.HTTP
import Haste
main :: IO ()
main =
do
body <- getResponseBody result
alert body
When I try more or less the same with standard Haskell it works
module Main where
import Network.HTTP
main :: IO ()
main =
do
body <- getResponseBody result
putStrLn body
Is there a way to get this working or a more recommended way to load data?
Thanks for your help in advance
Herbert