{"action":"closed","issue":{"url":"https://api.github.com/repos/fsharp/FSharp.Data/issues/1013","repository_url":"https://api.github.com/repos/fsharp/FSharp.Data","labels_url":"https://api.github.com/repos/fsharp/FSharp.Data/issues/1013/labels{/name}","comments_url":"https://api.github.com/repos/fsharp/FSharp.Data/issues/1013/comments","events_url":"https://api.github.com/repos/fsharp/FSharp.Data/issues/1013/events","html_url":"https://github.com/fsharp/FSharp.Data/issues/1013","id":193366973,"number":1013,"title":"Need to reopen FSharp.Data","user":{"login":"gmpl","id":1261319,"avatar_url":"https://avatars.githubusercontent.com/u/1261319?v=3","gravatar_id":"","url":"https://api.github.com/users/gmpl","html_url":"https://github.com/gmpl","followers_url":"https://api.github.com/users/gmpl/followers","following_url":"https://api.github.com/users/gmpl/following{/other_user}","gists_url":"https://api.github.com/users/gmpl/gists{/gist_id}","starred_url":"https://api.github.com/users/gmpl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmpl/subscriptions","organizations_url":"https://api.github.com/users/gmpl/orgs","repos_url":"https://api.github.com/users/gmpl/repos","events_url":"https://api.github.com/users/gmpl/events{/privacy}","received_events_url":"https://api.github.com/users/gmpl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-04T18:40:24Z","updated_at":"2016-12-04T22:38:05Z","closed_at":"2016-12-04T22:38:05Z","body":"I need to get the type of the rows because I will transform the structure later, as you can see in this sample code:\r\n\r\n    #r @\"C:\\packages\\FSharp.Data.2.3.2\\lib\\net40\\FSharp.Data.dll\"\r\n\r\n    open FSharp.Data\r\n\r\n    type InterestRate = {Period : string; Mid : float}\r\n    type html = FSharp.Data.HtmlProvider<\"http://www.cmegroup.com/trading/interest-rates/stir/eurodollar.html\">\r\n\r\n    open FSharp.Data\r\n\r\n    let allRows = html.Load(@\"http://www.cmegroup.com/trading/interest-rates/stir/eurodollar.html\").Tables.QuotesFuturesProductTable1.Rows\r\n\r\n    type Row = ``HtmlProvider,Sample=\"http://www.cmegroup.com/trading/interest-rates/stir/eurodollar.html\"``.QuotesFuturesProductTable1.Row\r\n    let createIr (row: Row) = {Period = row.Month ; Mid = (float row.Low + float row.High) / 2.}\r\n\r\n    let x1 = createIr allRows.[1]\r\n\r\n\r\nI managed to make it work, but if I don't re-open the namespace (try commenting out the second open) I get a: \r\n\r\n    test-type-prov.fsx(12,16): error FS0039: The namespace or module 'HtmlProvider,Sample=\"http://www.cmegroup.com/trading/interest-rates/stir/eurodollar.html\"' is not defined\r\n\r\nBTW : Is there a better way to get the type of the row in order to avoid the 'lookup on object of indeterminate type error' ?"}}
{"actor":{"display_login":"tpetricek"}}