[Haskell-beginners] Deploying a haskell application (not a webapp)

Alan Buxton alanbuxton at gmail.com
Thu Dec 18 08:20:14 UTC 2014


Oh that's cool. Is there a way to configure this in some file so that when I
build just this application a particular datadir is used?

-----Original Message-----
From: Beginners [mailto:beginners-bounces at haskell.org] On Behalf Of Michael
Orlitzky
Sent: 17 December 2014 17:53
To: beginners at haskell.org
Subject: Re: [Haskell-beginners] Deploying a haskell application (not a
webapp)

On 12/17/2014 09:16 AM, Mateusz Kowalczyk wrote:
> 
> Pretty sure the whole point of this thread is that the OP does not 
> want to build on the server.
> 

Oh, sorry, I missed that. You can pass --datadir to Cabal's configure step;
e.g.

  $ runghc Setup.hs configure --datadir=/usr/local/share/<your-app>

I believe it's using /home/alan/.cabal/share as the default, but if you tell
it to do otherwise, it will.

_______________________________________________
Beginners mailing list
Beginners at haskell.org
http://www.haskell.org/mailman/listinfo/beginners



More information about the Beginners mailing list