Send Beginners mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1. Re:  Deploying a haskell application (not a       webapp) (Alan Buxton)
   2. Re:  Deploying a haskell application (not a       webapp)
      (Corentin Dupont)


----------------------------------------------------------------------

Message: 1
Date: Thu, 18 Dec 2014 08:20:14 -0000
From: "Alan Buxton" <[email protected]>
To: "'The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell'" <[email protected]>
Subject: Re: [Haskell-beginners] Deploying a haskell application (not
        a       webapp)
Message-ID: <[email protected]>
Content-Type: text/plain;       charset="us-ascii"

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:[email protected]] On Behalf Of Michael
Orlitzky
Sent: 17 December 2014 17:53
To: [email protected]
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
[email protected]
http://www.haskell.org/mailman/listinfo/beginners



------------------------------

Message: 2
Date: Thu, 18 Dec 2014 10:31:15 +0100
From: Corentin Dupont <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Deploying a haskell application (not
        a       webapp)
Message-ID:
        <caeyhvmofodlrpbsggexjdbpv4waul9xtyiyvkdx8sp0yymo...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

I add a command line parameter to my programs to specify the location of
config files:
<myProg> -c <MyConfig.ini>

This overrides the Cabal default location.
Without arguments I keep the Cabal default location because it's convenient
during development :)

On Thu, Dec 18, 2014 at 9:20 AM, Alan Buxton <[email protected]> wrote:
>
> 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:[email protected]] On Behalf Of
> Michael
> Orlitzky
> Sent: 17 December 2014 17:53
> To: [email protected]
> 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
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20141218/87fed661/attachment-0001.html>

------------------------------

Subject: Digest Footer

_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners


------------------------------

End of Beginners Digest, Vol 78, Issue 17
*****************************************

Reply via email to