Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to build a self-contained library with cabal?

Tags:

haskell

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.

like image 817
user1887615 Avatar asked Jun 26 '13 15:06

user1887615


1 Answers

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.

like image 66
Don Stewart Avatar answered Sep 29 '22 21:09

Don Stewart