How to build a self-contained library with cabal?
问题 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,