F#, namespaces, modules, fs and fsx

前端 未结 2 2114
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-16 10:13

I\'m aware of other questions about modules and namespaces in F#, but they\'re not helping me right now.

I\'ve got a project with

Utilities.fs

2条回答
  •  渐次进展
    2020-12-16 10:43

    I'm relatively new at this too, but this is what works for me when I'm testing in an fsx file:

    #if INTERACTIVE
    #r @"C:\Program Files\FSharpPowerPack-2.0.0.0\bin\FParsec.dll"
    #r @"C:\Program Files\FSharpPowerPack-2.0.0.0\bin\FParsecCS.dll"
    #endif
    
    open FParsec.Primitives  
    open FParsec.CharParsers
    

    followed by my code that uses these libraries.

提交回复
热议问题