FSharpKoans icon indicating copy to clipboard operation
FSharpKoans copied to clipboard

Idea: Extend Koans to Include Type Providers

Open normanhh3 opened this issue 5 years ago • 4 comments

Hi Folks,

I loved what I learned with this and want to learn about FSharp type providers. I'm wondering if anyone has considered a Koan specific to Type Providers? I'm willing to do some coding, but wanted to be sure that it wasn't something ruled out early on for some reason I'm blissfully unaware of.

I appreciate all of the efforts that have gone into and continue to go into making this a top-notch teaching tool!

normanhh3 avatar Oct 03 '18 16:10 normanhh3

Ok, I've thrown together a simple first pass using FSharp.Data and the CsvProvider with a small local file. I'd love to get some thoughts on this before I submit a PR for it.

normanhh3 avatar Oct 03 '18 21:10 normanhh3

So far I can see that I have a build warning that I need some help with.

Installing FSharp.Data 2.4.6. .../FSharpKoans/FSharpKoans/FSharpKoans.fsproj : warning NU1701: Package 'FSharp.Data 2.4.6' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project. [.../FSharpKoans/FSharpKoans.sln]

normanhh3 avatar Oct 03 '18 21:10 normanhh3

you need FSharp.Data preview versions - 3.x. The older only supports full framework.

vilinski avatar Oct 03 '18 21:10 vilinski

That appears to have done the trick! Thanks so much!

normanhh3 avatar Oct 04 '18 00:10 normanhh3