How to build a self-contained library with cabal?

☆樱花仙子☆ 提交于 2019-12-14 03:46:18

问题


I have a library which depends on some other libraries and of course the haskell runtime. It exports C API. I want to build it in a way that it was fully self-contained and user wouldn't be bothered with installing haskell, cabal and all the dependencies.


回答1:


it was fully self-contained and user wouldn't be bothered with installing haskell, cabal and all the dependencies

Then you must distribute your library with all its dependencies -- the Haskell compiler, runtime, C libraries, Cabal, dependent libraries. This is a non-trivial task -- you're rolling your own Haskell Platform.

You could modify the HP source and generate installers. They would be in effect standalone installers for your library.



来源:https://stackoverflow.com/questions/17324338/how-to-build-a-self-contained-library-with-cabal

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