Logs: freenode/#haskell
| 2020-09-19 20:18:06 | <drupol> | I'm building my project in ghci I do: :load Main.hs |
| 2020-09-19 20:18:21 | <ddellacosta> | drupol: are you using cabal, or stack? |
| 2020-09-19 20:18:26 | <drupol> | Stack |
| 2020-09-19 20:19:18 | × | nbloomf quits (~nbloomf@2600:1700:83e0:1f40:a06a:6814:10f6:3957) (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 2020-09-19 20:19:55 | <ddellacosta> | drupol: so, I'm less familiar with stack, but I think you need to add the data-ordlist dependency to your stack.yaml somehow. Have you done this? |
| 2020-09-19 20:20:32 | × | heatsink quits (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) (Remote host closed the connection) |
| 2020-09-19 20:21:03 | <sm[m]> | add it to the .cabal or package.yaml file, rather |
| 2020-09-19 20:21:09 | <drupol> | No, I never had to deal with that stuff yet |
| 2020-09-19 20:21:17 | <ddellacosta> | sm[m]: thanks, I was hoping someone would correct me if I screwed that up... |
| 2020-09-19 20:21:34 | <sm[m]> | if it weren't in stackage, then you'd be right |
| 2020-09-19 20:21:36 | <drupol> | How to create a basic package.yaml file? |
| 2020-09-19 20:21:51 | <ddellacosta> | drupol: so basically what you're trying to use is a package that is not included by default (which is not very clear from the example you're working from, so don't feel like you missed anything) |
| 2020-09-19 20:21:57 | <sm[m]> | drupol, if you don't have one don't bother, use the .cabal file |
| 2020-09-19 20:21:58 | × | martin___ quits (uid411878@gateway/web/irccloud.com/x-jsetcwsgqhdwsuvk) (Quit: Connection closed for inactivity) |
| 2020-09-19 20:22:26 | <ddellacosta> | drupol: follow sm[m] 's advice on stack here on out please :-D |
| 2020-09-19 20:22:36 | <sm[m]> | but I guess you don't have a .cabal file either eh |
| 2020-09-19 20:22:46 | <drupol> | No I don't have any of those files indeed. |
| 2020-09-19 20:22:49 | sm[m] | tag-teams with ddellacosta |
| 2020-09-19 20:22:50 | <drupol> | It's pretty new for me. |
| 2020-09-19 20:23:00 | <ddellacosta> | sm[m]: thanks! |
| 2020-09-19 20:24:11 | <bicho_rastrero> | merijn: The source for "How to write a Haskell application" is https://wiki.haskell.org/How_to_write_a_Haskell_program or did you mean another one? The title is too generic. |
| 2020-09-19 20:24:36 | <sm[m]> | drupol, there are a few ways to get the extra package needed to make that import work. If this is just a one-time experiment, I personally would install it "globally" (stack install data-ordlist) and then use the -package data-ordlist option with ghc & ghci |
| 2020-09-19 20:24:52 | → | frdg joins (~user@pool-71-184-143-249.bstnma.fios.verizon.net) |
| 2020-09-19 20:24:54 | <drupol> | Okay, thanks :-) |
| 2020-09-19 20:25:48 | <frdg> | How can I upgrade from stack 2.3.3 to stack 2.4? |
| 2020-09-19 20:25:58 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 265 seconds) |
| 2020-09-19 20:26:05 | × | zacts quits (~zacts@dragora/developer/zacts) (Ping timeout: 240 seconds) |
| 2020-09-19 20:26:07 | <bicho_rastrero> | Dammit. |
| 2020-09-19 20:26:13 | ← | shad0w_ parts (~arjun@160.202.36.27) ("Using Circe, the loveliest of all IRC clients") |
| 2020-09-19 20:26:50 | <drupol> | @sm[m] GHCi, version 8.8.4: https://www.haskell.org/ghc/ :? for help |
| 2020-09-19 20:26:50 | <drupol> | <command line>: cannot satisfy -package data-ordlist |
| 2020-09-19 20:26:50 | <drupol> | (use -v for more information) |
| 2020-09-19 20:26:51 | <lambdabot> | Unknown command, try @list |
| 2020-09-19 20:27:46 | <sm[m]> | drupol: my mistake. stack install data-ordlist && stack exec -- ghci -package data-ordlist Main.hs ? |
| 2020-09-19 20:27:58 | <drupol> | Trying it out |
| 2020-09-19 20:28:11 | × | p-core quits (~Thunderbi@koleje-wifi-0046.koleje.cuni.cz) (Remote host closed the connection) |
| 2020-09-19 20:28:31 | → | p-core joins (~Thunderbi@koleje-wifi-0046.koleje.cuni.cz) |
| 2020-09-19 20:29:03 | <drupol> | sm[m]: Works flawlessly. Is there a way to automatize this when I run ghc or ghci ? |
| 2020-09-19 20:30:43 | <sm[m]> | several ways. Usually the way is to make a "project" directory with stack init or cabal init. You put Main.hs in there and you add data-ordlist to the list of dependencies in the .cabal file |
| 2020-09-19 20:31:04 | <sm[m]> | and then inside that project dir you can just do stack ghci, stack build etc |
| 2020-09-19 20:31:09 | <drupol> | Going to try the Stack init. |
| 2020-09-19 20:31:48 | × | dale quits (dale@unaffiliated/dale) (Remote host closed the connection) |
| 2020-09-19 20:32:00 | → | dale joins (dale@unaffiliated/dale) |
| 2020-09-19 20:32:02 | <wwwww> | c |
| 2020-09-19 20:32:06 | <drupol> | Ok I have stack.yaml file now :-) |
| 2020-09-19 20:32:52 | <wwwww> | wrong chat |
| 2020-09-19 20:33:33 | × | cole-h quits (~cole-h@c-73-48-197-220.hsd1.ca.comcast.net) (Quit: Goodbye) |
| 2020-09-19 20:33:50 | <frdg> | here is my problem: I have a server that I ssh into. I would like to run a stack program from this server. How can I transfer the project as a whole instead of having to compile from source? Or should I just install from source? |
| 2020-09-19 20:33:50 | <frdg> | So far I have run into issues trying to re-compile. |
| 2020-09-19 20:34:06 | → | frdg` joins (~user@pool-71-184-143-249.bstnma.fios.verizon.net) |
| 2020-09-19 20:34:09 | × | frdg quits (~user@pool-71-184-143-249.bstnma.fios.verizon.net) (Remote host closed the connection) |
| 2020-09-19 20:34:22 | <sm[m]> | drupol: fair warning, we can advise how to do basic stuff but you will probably get confused and have a horrible time unless you read some of the stack and maybe the cabal user guides |
| 2020-09-19 20:34:49 | <drupol> | extra-deps: |
| 2020-09-19 20:34:49 | <drupol> | - data-ordlist-0.4.7.0 |
| 2020-09-19 20:34:53 | <drupol> | Sure I understand |
| 2020-09-19 20:34:58 | <drupol> | But that is working :-) |
| 2020-09-19 20:35:09 | <drupol> | Thanks! |
| 2020-09-19 20:35:19 | → | walla joins (47b88ff9@pool-71-184-143-249.bstnma.fios.verizon.net) |
| 2020-09-19 20:35:27 | <sm[m]> | np |
| 2020-09-19 20:39:54 | <sm[m]> | frdg: if you can arrange for your build machine and server to be the same architecture and similar os version, you can copy the binary |
| 2020-09-19 20:40:18 | → | knupfer joins (~Thunderbi@mue-88-130-61-068.dsl.tropolys.de) |
| 2020-09-19 20:40:29 | <sm[m]> | if not, you could build inside a vm that's configured like the server |
| 2020-09-19 20:40:54 | <frdg`> | both are x86_64. OS's are the same |
| 2020-09-19 20:40:57 | <sm[m]> | I think people also use "docker" for this, but I don't understand how that all works |
| 2020-09-19 20:41:10 | <sm[m]> | that sounds good then |
| 2020-09-19 20:41:43 | <frdg`> | I ended up getting linux on that macbook :) |
| 2020-09-19 20:41:53 | <sm[m]> | ha, nice |
| 2020-09-19 20:42:08 | <sm[m]> | the binary will depend on some c libs , which should be present on both machines |
| 2020-09-19 20:42:40 | <frdg`> | ok |
| 2020-09-19 20:43:30 | → | mnrmnaugh joins (~mnrmnaugh@unaffiliated/mnrmnaugh) |
| 2020-09-19 20:44:01 | → | nbloomf joins (~nbloomf@2600:1700:83e0:1f40:a06a:6814:10f6:3957) |
| 2020-09-19 20:46:47 | × | _xor quits (~xor@74.215.46.133) (Quit: WeeChat 2.9) |
| 2020-09-19 20:48:01 | <ddellacosta> | yeah I was going to say nix-copy-clojure or some other form of nix magic, or docker |
| 2020-09-19 20:48:19 | <ddellacosta> | but nix is a big ask if you aren't already familiar |
| 2020-09-19 20:48:38 | <ddellacosta> | I mean, docker is too I guess, but a bit easier to get started with |
| 2020-09-19 20:49:35 | → | danvet_ joins (~Daniel@212-51-149-96.fiber7.init7.net) |
| 2020-09-19 20:49:36 | <ddellacosta> | lol nix-copy-closure I mean |
| 2020-09-19 20:49:37 | <frdg`> | how do I create the binaries? Is this done with stack? |
| 2020-09-19 20:49:40 | <ddellacosta> | guess what my day job is |
| 2020-09-19 20:49:59 | → | fendor joins (~fendor@212095005091.public.telering.at) |
| 2020-09-19 20:50:26 | → | wroathe_ joins (~wroathe@c-73-24-27-54.hsd1.mn.comcast.net) |
| 2020-09-19 20:50:38 | × | wroathe quits (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) (Ping timeout: 256 seconds) |
| 2020-09-19 20:53:22 | × | nek0 quits (~nek0@2a01:4f8:222:2b41::12) (Remote host closed the connection) |
| 2020-09-19 20:54:17 | × | ggole quits (~ggole@2001:8003:8119:7200:df:f904:197b:d0a9) (Quit: Leaving) |
| 2020-09-19 20:54:20 | → | lambda-11235 joins (~lambda-11@108-237-120-58.lightspeed.frokca.sbcglobal.net) |
| 2020-09-19 20:57:53 | wroathe_ | is now known as wroathe |
| 2020-09-19 20:59:37 | → | merijn joins (~merijn@83-160-49-249.ip.xs4all.nl) |
| 2020-09-19 21:00:01 | × | exarkun1 quits (~exarkun@193.56.252.210) () |
| 2020-09-19 21:01:42 | × | nbloomf quits (~nbloomf@2600:1700:83e0:1f40:a06a:6814:10f6:3957) (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 2020-09-19 21:04:22 | → | danso joins (~dan@107-190-41-58.cpe.teksavvy.com) |
| 2020-09-19 21:05:16 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 272 seconds) |
| 2020-09-19 21:08:39 | <sm[m]> | frdg`: yes, stack build (or stack install which copies them to a more convenient place) |
| 2020-09-19 21:09:25 | → | heatsink joins (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) |
| 2020-09-19 21:09:41 | <tomsmeding> | maerwald: what tar package would you suggest I use for creating tar files? |
| 2020-09-19 21:09:53 | <tomsmeding> | preferably one that doesn't limit the file name length |
| 2020-09-19 21:09:57 | <tomsmeding> | :p |
| 2020-09-19 21:10:02 | <walla> | ok. I will be able to figure it out from here. I have to figure out how to get the database working and all that first. Thanks for the help as always. |
| 2020-09-19 21:10:42 | → | lkr123 joins (5b40b67c@ip5b40b67c.dynamic.kabel-deutschland.de) |
| 2020-09-19 21:10:47 | <walla> | haha it is fridge from my other computer by accident :) |
| 2020-09-19 21:10:50 | <walla> | frdg |
All times are in UTC.