![]() Then in FSI you can refer xxy as File1.xxy, and you can create it as File1.B "jds". fs file, let's say File1.fs and put a module declaration on top, and do #load "File1.fs" fsx file per se, but I assume it should work. Just declare at the top of your fsx an AutoOpen module with the same name and you are good to go: Val run : parser:Parser -> input:string -> Result Type Parser = | Parser of (string -> Result) Got '%c'" charToMatch firstįreely distributed under the Apache 2.0 Open Source License Type Parser = Parser of (string -> Result) / Type that represents Success/Failure in parsing The file is named Temp.fsx and the contents are wrapped with a module named Temp. For some reason, the REPL doesn't recognize the custom types (so I can't use the type constructors) and functions, so I get error FS0039: The value or constructor '' is not defined. For this purpose, I fire up fsi and run #load "pc.fsx " - the file is loaded and compiled, and I see all of the type definitions and function types, under a generic namespace. I wish to use them interactively in fsi (an alias for fsharpi). fsx file that defines some types and functions. 4.01 is loaded when I run fsharpi in the terminal. I installed mono on OS X via brew install mono, and F# v.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |