I think it would be a great idea to have a PowerShell module for running F# scripts. I was following the tutorial Embedding F# Interactive, and I have written a simple PowerShell module FsiSession, which would be used as such:
$session = New-FsiSession
Invoke-FsiSession $session -Path Sample.fsx
Invoke-FsiSession $session -Expression Sample.twenty
(With Sample.fsx containing the line let twenty = 10 + 10.)
dotnet fsi when running an .fsx file was taking too long each time, so I wrote this module.
I genuinely believe that having a module like this in PSGallery, officially maintained, would be a great alternative to using dotnet fsi raw because the startup time is too long.
Thank you for your time.
I think it would be a great idea to have a PowerShell module for running F# scripts. I was following the tutorial Embedding F# Interactive, and I have written a simple PowerShell module FsiSession, which would be used as such:
(With
Sample.fsxcontaining the linelet twenty = 10 + 10.)dotnet fsiwhen running an.fsxfile was taking too long each time, so I wrote this module.I genuinely believe that having a module like this in PSGallery, officially maintained, would be a great alternative to using
dotnet fsiraw because the startup time is too long.Thank you for your time.