Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tryfsharp.org - type providers?

Does anyone know what type providers are available on tryfsharp.org?

For example, I know that a CsvFile type provider is available by referencing:

#r "Samples.Csv.dll"

Additionally, there are:

#r "Samples.Hadoop.TypeProviders.dll"
#r "Samples.DataStore.Freebase.dll"

But what others can be used? It would be cool if an XML or JSON type provider were available. I can't seem to find any documentation on what dll's can be referenced in a script on tryfsharp.org.

Anyone have additional information on the matter?

like image 243
Joshua Avatar asked Mar 21 '13 18:03

Joshua


1 Answers

The ones you have noticed are all part of the "learning" section of TryFSharp.org . The best way I've found to discover these is to look through the tutorials.

Hadoop

#r "Samples.Hadoop.TypeProviders.dll"

Freebase

#r "Samples.DataStore.Freebase.dll"

CSV

#r "Samples.Csv.dll"

Azure

#r "System.Data.Services.Client"
#r "Samples.WindowsAzure.Marketplace"

WorldBank

#r "Samples.WorldBank.dll"

Excel.WorksheetTable

#r "Samples.Excel.WorksheetTable.dll"

A couple non-type providers (there might be ones I missed):

MathNet.Numerics

#r "MathNet.Numerics.dll"

MathNet.Numerics.Fsharp

#r "MathNet.Numerics.FSharp.dll"

TryFSharp.org 's browser API

open TryFSharp
Canvas.Show()
Canvas.Clear()

Canvas.SetContent "<h1>Try F# interop</h1>Try F# interop rocks!"

Canvas.RunJavaScript "document.getElementsByTagName('h1')[0].innerHTML = 'New title!'"

let raphaelUndefined = Canvas.RunJavaScript "(typeof dojo === 'undefined')"
if raphaelUndefined :?> bool then
    Canvas.LoadScript "http://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js"

(for this one please note Canvas.LoadScript which allows you to load javascript)

Not a file that needs to be loaded, but there is also:

Samples.Charting.DojoChart

open Samples.Charting.DojoChart

like image 200
N_A Avatar answered Oct 07 '22 19:10

N_A