How to obtain F# powerpack for F# 3.0

青春壹個敷衍的年華 提交于 2019-12-04 05:56:14
Brian

You can compile the PowerPack sources on your own (against F# 3.0), to make your own copy of the library.

Alternatively, I think a binding redirect in your final foo.exe.config, along the lines of

https://stackoverflow.com/a/9648673/19299

but redirecting 2.0.0.0 (that PowerPack uses) to 4.3.0.0 (in VS11 SDK) will also work.

In addition to what Brian said, I think that the easiest way to use functionality from the F# PowerPack is to just copy the source code for the parts that you're using to your project.

The PowerPack library contains quite a wide range of functionality and I typically only use one or two parts. If you're looking for components like lazy list, parallel collections (PLINQ), hash multi-map or async extensions, you can usually just copy one or two files and you don't have to build the whole library.

(Also note that most of the LINQ functionality from F# PowerPack has moved to the F# core library in F# 3.0)

Don Syme has recently uploaded F# PowerPack 4.0.0.0 which is compiled against F# 3.0.

There is an MSI installer for Windows. There is also a zip archive which even worked with MonoDevelop 3.0/F# 3.0 when I tried to use it on Mac OS X. So much time and efforts are saved especially when one needs to use fslex/fsyacc for parsing.

Update for F# 4.0: At this point the F# PowerPack - or at least the remnants thereof - are on GitHub. The major components have been spun off into their own projects. (FsLex/FsYacc is what brought me here too.)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!