ChrisMarinos/FSharpKoans

Idea: Extend Koans to Include Type Providers

Opened this issue · 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!

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.

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]

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

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