fsi

F# fsi.AddPrinter: Does AddPrinter have ability to take list apart?

我们两清 提交于 2019-12-25 00:27:10
问题 In our project we use fsi.AddPrinter for printing type formula<fol>. To make it easier we include fsi.AddPrinter sprint_fol_formula in our fsx files to transform the AST results into human readable results. val inline sprint_fol_formula : formula<fol> -> string In the process of creating test cases we also output both the AST result and the human readable result. The AST result is the result of processing the formulas. To transform the AST into human readable format in the unit test we just

FSI WPF Event Loop

自古美人都是妖i 提交于 2019-12-19 11:21:17
问题 Is the WPF event loop in this answer still a good one for FSI (besides rethrow which is now reraise )? The answer is from 2008 and I'm not sure if there are any "better" implementations around. If not what would one be? My understanding is that the default implementation is for WinForms. 回答1: Yes the default is for Winforms, I do use the WpfEventLoop quite a lot, Code is below, #I "c:/Program Files/Reference Assemblies/Microsoft/Framework/v3.0" #I "C:/WINDOWS/Microsoft.NET/Framework/v3.0/WPF/

fsx script referencing a dll referencing many dll

爷,独闯天下 提交于 2019-12-18 13:10:03
问题 What kind of strategy do I have for the following problem. I want to use a simple class inside a dll, which has link to various dlls, of various versions etc. As a fsx file, my script show no error. but upon running it in fsharp interactive, it tells me error FS0074: The type referenced through 'theTypeIWantToUse' is defined in an assembly that is not referenced. You must add a reference to assembly 'Assembly'. Of course the assembly is referenced, so I imagine I need to add references to

Launching WPF Window from F# interactive, keyboard input broken

随声附和 提交于 2019-12-05 05:10:03
问题 A GUI was developed in WPF, and when launching it as a standalone application, all editable fields (datagrid columns, textboxes, etc.) work fine. However, when instantiating the window from FSI, no individual key characters are registered when typing. The interesting thing is copy/paste and highlight + delete all work. The window is being initialized like this: public void ShowGui() { guiWindow = new MainWindow(Bench, this); guiWindow.Show(); guiWindow.Activate(); } this function is then

Launching WPF Window from F# interactive, keyboard input broken

谁说我不能喝 提交于 2019-12-03 20:49:02
A GUI was developed in WPF, and when launching it as a standalone application, all editable fields (datagrid columns, textboxes, etc.) work fine. However, when instantiating the window from FSI, no individual key characters are registered when typing. The interesting thing is copy/paste and highlight + delete all work. The window is being initialized like this: public void ShowGui() { guiWindow = new MainWindow(Bench, this); guiWindow.Show(); guiWindow.Activate(); } this function is then being invoked in FSI All other functionality seems to work (button clicks, switching tabs), but any element

C# REPL outside Visual Studio

℡╲_俬逩灬. 提交于 2019-12-03 05:36:23
问题 F# has a REPL (read–eval–print loop) F# Interactive, C:\Program Files (x86)\Microsoft F#\v4.0\Fsi.exe . I understand C# now has its own interactive REPL, as released with Roslyn. How do I open outside Visual Studio? Where is csi.exe ? 回答1: C# Interactive window and csi.exe REPL were added to Visual Studio 2015 Update 1 (emphasis mine): Introducing Interactive The Interactive Window is back! The C# Interactive Window returns in Visual Studio 2015 Update 1 along with a couple other interactive

C# REPL outside Visual Studio

我是研究僧i 提交于 2019-12-02 18:54:26
F# has a REPL (read–eval–print loop) F# Interactive, C:\Program Files (x86)\Microsoft F#\v4.0\Fsi.exe . I understand C# now has its own interactive REPL, as released with Roslyn . How do I open outside Visual Studio? Where is csi.exe ? C# Interactive window and csi.exe REPL were added to Visual Studio 2015 Update 1 (emphasis mine): Introducing Interactive The Interactive Window is back! The C# Interactive Window returns in Visual Studio 2015 Update 1 along with a couple other interactive treats: C# Interactive . The C# Interactive window is essentially a read-eval-print-loop (REPL) that allows