Re: Specify executable path?

2019-10-11 Thread Casper T. Hansen
Thank you for your answer, my case is that I need to extract the binary 
after building in a docker container, so Michael Snoyman's approach seems 
to fit better.

fredag den 11. oktober 2019 kl. 01.02.36 UTC+2 skrev Han Joosten:
>
> As far as I know, this is by design. 
> If you just want to execute it in your sandbox, you can run `stack exec 
> appName.exe`
> If you want the executable to be available in your path, build it with 
> `stack install`
>
>
> Op donderdag 10 oktober 2019 22:01:44 UTC+2 schreef Casper T. Hansen:
>>
>> Is there a way to instruct stack on where to place the executable once it 
>> has been built?
>> Currently I use: find ./.stack-work/install/x86_64-linux/ -name 
>> appName-exe
>> but it seems like something, where I just cannot find the right command.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"haskell-stack" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to haskell-stack+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/haskell-stack/9ffab632-c604-4a30-abb8-c78a0aa58d83%40googlegroups.com.


Re: Specify executable path?

2019-10-11 Thread Casper T. Hansen
Ahh I will try this! 
I need to extract the binary after building in a docker container, so this 
seems to be a good approach.
Thank you.

fredag den 11. oktober 2019 kl. 09.04.47 UTC+2 skrev Michael Snoyman:
>
> You can use `stack install` or `stack build --copy-bins` with 
> `--local-bin-path`
>
> On Thu, Oct 10, 2019 at 11:01 PM Casper T. Hansen  > wrote:
>
>> Is there a way to instruct stack on where to place the executable once it 
>> has been built?
>> Currently I use: find ./.stack-work/install/x86_64-linux/ -name 
>> appName-exe
>> but it seems like something, where I just cannot find the right command.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "haskell-stack" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to haskel...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/haskell-stack/3b77b516-f2c6-4578-bdc3-c5a535d38e2c%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"haskell-stack" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to haskell-stack+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/haskell-stack/88c0e546-49c8-4603-b520-d2b82501cd2f%40googlegroups.com.


Re: Specify executable path?

2019-10-10 Thread Han Joosten
As far as I know, this is by design. 
If you just want to execute it in your sandbox, you can run `stack exec 
appName.exe`
If you want the executable to be available in your path, build it with 
`stack install`


Op donderdag 10 oktober 2019 22:01:44 UTC+2 schreef Casper T. Hansen:
>
> Is there a way to instruct stack on where to place the executable once it 
> has been built?
> Currently I use: find ./.stack-work/install/x86_64-linux/ -name 
> appName-exe
> but it seems like something, where I just cannot find the right command.
>

-- 
You received this message because you are subscribed to the Google Groups 
"haskell-stack" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to haskell-stack+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/haskell-stack/ab76c414-1b46-4a1d-8fd8-1505a183f7ec%40googlegroups.com.