Sorry for newbie's question (and for my english) :)
I tries to write the following function:
I know how to execute the HTTP requests. I have a function to parse the request from URL1. But I don't know how:
I principle you want something like this:
import Maybe
import Http
type Url = String
getContentFromUrl : Maybe Url -> Maybe String
getContentFromUrl url = --your implementation
extractUrlFromContent : Maybe String -> Maybe Url
extractUrlFromContent content = --your implementation
content = getContentFromUrl (Just "http://example.com")
|> extractUrlFromContent
|> getContentFromUrl