Logs: freenode/#haskell
| 2020-09-27 20:49:25 | × | v_m_v quits (~vm_v@31-10-157-87.cgn.dynamic.upc.ch) (Remote host closed the connection) |
| 2020-09-27 20:49:39 | <dsal> | I don't even quite know what that is. I just run their compiler and it spits out javascript. Then they have you run some other command that makes that javascript not huge. |
| 2020-09-27 20:49:48 | <[exa]> | Elm compiles to something like javascript-ish |
| 2020-09-27 20:51:23 | <dsal> | I deleted the intermediate file and now it's Haskell: 49.7%, Elm: 35.7%, JavaScript: 8.5%, CSS: 3.9%, HTML: 1.7%, Makefile: 0.3%, Nix: 0.2% |
| 2020-09-27 20:52:10 | <dsal> | It spits out gopro.js which I run through whatever tool they recommend to get gopro.min.js. I don't use gopro.js anywhere, but it makes my project look like a JS project. I wonder if there's a way to have github ignore files when counting these things.. |
| 2020-09-27 20:52:11 | <fluturel> | Apparently there isn't an option to compile to wasm directly, but i see some people are working on it |
| 2020-09-27 20:54:05 | × | rockethead quits (~rockethea@2001:41d0:302:2100::6dae) (Ping timeout: 272 seconds) |
| 2020-09-27 20:54:29 | <fluturel> | I'm going back to some more haskell before going to bed |
| 2020-09-27 20:54:36 | <dsal> | Oh, they do have a tool to have it ignore stuff. This is good. |
| 2020-09-27 20:54:37 | fluturel | realizes no onecares |
| 2020-09-27 20:54:58 | <fluturel> | dsal: i thought you were joking. are you? |
| 2020-09-27 20:55:09 | <dsal> | fluturel: GoPro Hero 9 is $350 with a year of cloud service. You could record yourself sleeping and upload it to the cloud every morning. |
| 2020-09-27 20:55:10 | <dsal> | I never joke. |
| 2020-09-27 20:55:38 | <dsal> | But no, they actually have useful ways to tell their junk not to pay attention to files that aren't part of your source. Or to recognize some things differnetly. |
| 2020-09-27 20:56:11 | <fluturel> | dsal: i see no reason why i would ever do that |
| 2020-09-27 20:56:54 | <fluturel> | dsal: that being said, i would stream myself sleeping if i knew somebody would watch |
| 2020-09-27 20:57:12 | <koz_> | fluturel: Lol. |
| 2020-09-27 20:57:36 | <ski> | fluturel : `let' is recursive in Haskell, though |
| 2020-09-27 20:58:00 | <dsal> | You just have to collect more hobbies. :) I've used mine for diving, recording RC aircraft crashes, 3D prints, teaching yoga, recording music stuff, shooting stuff... whatever else comes up. |
| 2020-09-27 20:58:20 | <dsal> | One problem people have when they want to learn Haskell is "what can I do with it?" I just mix all my interests together. |
| 2020-09-27 20:58:46 | → | merijn joins (~merijn@83-160-49-249.ip.xs4all.nl) |
| 2020-09-27 20:58:52 | <fluturel> | dsal: damn, i wish i had the time to have that many hobbies |
| 2020-09-27 20:58:57 | <fluturel> | maybe after uni |
| 2020-09-27 20:59:08 | <fluturel> | cause a collosal time is spent for uni |
| 2020-09-27 20:59:59 | <fluturel> | colossal* damn you double 's' |
| 2020-09-27 21:00:01 | → | machinedgod joins (~machinedg@142.169.78.168) |
| 2020-09-27 21:00:02 | × | larsivi quits (~larsivi@s91904426.blix.com) () |
| 2020-09-27 21:00:24 | <monochrom> | dsal, I am now imagining this meme describing you: "recording RC aircrafts soaring" -> the "nah, no thanks" picture; "recording RC aircrafts crashing" -> the "thumb up, approval" picture. :) |
| 2020-09-27 21:01:01 | <dsal> | haha. Crashing RC planes is great because you don't die. |
| 2020-09-27 21:02:11 | <fluturel> | ski: i have yet to learn that one detail. I need to know more, please |
| 2020-09-27 21:02:54 | <dsal> | let == letrec |
| 2020-09-27 21:02:56 | <ski> | > let xs = 0 : ys; ys = 1 : xs in take 5 xs -- fluturel |
| 2020-09-27 21:02:59 | <lambdabot> | [0,1,0,1,0] |
| 2020-09-27 21:03:00 | → | elliott_ joins (~elliott_@pool-100-36-54-163.washdc.fios.verizon.net) |
| 2020-09-27 21:03:30 | <fluturel> | that's... wow |
| 2020-09-27 21:03:54 | <ski> | > let xs = [x | y <- ys,x <- [0,y]]; ys = [1+x | x <- xs] in take 8 xs |
| 2020-09-27 21:03:58 | <lambdabot> | *Exception: <<loop>> |
| 2020-09-27 21:04:02 | <ski> | ah |
| 2020-09-27 21:04:14 | <ski> | > let xs = 0 : tail [x | y <- ys,x <- [0,y]]; ys = [1+x | x <- xs] in take 8 xs |
| 2020-09-27 21:04:17 | <lambdabot> | [0,1,0,2,0,1,0,3] |
| 2020-09-27 21:05:44 | <dsal> | Hey, this worked. My project now says Haskell: 53.9% and 1% JavaScript. |
| 2020-09-27 21:05:45 | <monochrom> | "let" mutually recursive unless you add intermediate "let"s to break up your group. |
| 2020-09-27 21:06:09 | <dsal> | Oh, which is correct, because I actually wrote some real JavaScript for AWS Lambda after spending a while trying to figure out how to do something simple in Haskell. |
| 2020-09-27 21:06:32 | <dsal> | Huge uphill battle for no real gain other than keeping my hands slightly cleaner. |
| 2020-09-27 21:07:25 | × | oisdk quits (~oisdk@2001:bb6:3329:d100:bd22:91d7:f791:22b6) (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 2020-09-27 21:09:50 | → | Guest_94 joins (5c101100@92.16.17.0) |
| 2020-09-27 21:10:39 | <Guest_94> | Hello, I am trying to install Haskell on my Mac however am having some issues |
| 2020-09-27 21:10:50 | <Guest_94> | Downloading the latest package list from hackage.haskell.org Installation done!In order to run ghc and cabal, you need to adjust your PATH variable.You may want to source '/Users/School/.ghcup/env' in your shellconfiguration to do so (e.g. ~/.bashrc).Detected bash shell on your system...If you want ghcup to automatically add the required PATH |
| 2020-09-27 21:10:50 | <Guest_94> | variable to "/Users/School/.bashrc"answer with YES, otherwise with NO and press ENTER.YESgrep: /Users/School/.bashrc: No such file or directory |
| 2020-09-27 21:11:22 | <koz_> | Guest_94: The automagic only works if it can find your .bashrc. |
| 2020-09-27 21:11:27 | <koz_> | Which it says doesn't exist. |
| 2020-09-27 21:11:33 | <koz_> | I presume you've never had to adjust your PATH? |
| 2020-09-27 21:11:41 | <Guest_94> | No sorry I am very new to this |
| 2020-09-27 21:11:49 | <Guest_94> | Trying to set it up for a university course |
| 2020-09-27 21:13:14 | <koz_> | Guest_94: Create an empty .bashrc in the directory it indicated (/Users/School/), then dump the contexts of /Users/School/.ghcup/env into that file. |
| 2020-09-27 21:13:20 | <koz_> | Then open a fresh shell. |
| 2020-09-27 21:13:36 | <Guest_94> | Thank you so much |
| 2020-09-27 21:13:46 | <Guest_94> | How to create an empty .bashrc ? |
| 2020-09-27 21:13:57 | <ski> | koz_ : or source that file, maybe ? |
| 2020-09-27 21:13:58 | <koz_> | Guest_94: It's just a text file. |
| 2020-09-27 21:13:59 | <fluturel> | create a new file with that name exactly |
| 2020-09-27 21:14:08 | <koz_> | ski: sourcing that file would only affect the current shell. |
| 2020-09-27 21:14:25 | <fluturel> | 'touch .bashrc' in the shell |
| 2020-09-27 21:14:26 | <koz_> | And why bother putting a source command in your .bashrc when you can just... have those exact commands in your .bashrc. |
| 2020-09-27 21:14:29 | <ski> | koz_ : not if you put `source /Users/School/.ghcup/env' into `.bashrc' ? |
| 2020-09-27 21:14:57 | <koz_> | ski: Yeah, you could do that, but to me it adds a layer of indirection for no good reason. Also, it's not like that file is long or anything. |
| 2020-09-27 21:15:13 | <ski> | could `/Users/School/.ghcup/env' change in the future, adding more stuff perhaps ? |
| 2020-09-27 21:15:25 | <sclv> | well when you switch versions with ghcup it changes thar env file |
| 2020-09-27 21:15:35 | <sclv> | so its to manage multiversion installs |
| 2020-09-27 21:15:45 | <koz_> | sclv: OK, yeah, in that case, ski's suggestion is the right one. |
| 2020-09-27 21:15:50 | <koz_> | I manually manage GHC versions. |
| 2020-09-27 21:15:55 | → | normie joins (~normie@S0106ac202e2069c3.vw.shawcable.net) |
| 2020-09-27 21:15:57 | <koz_> | (i.e. using -w) |
| 2020-09-27 21:16:12 | <sclv> | it may change symlinks and not that file actually I don’t remember |
| 2020-09-27 21:16:25 | → | justsomeguy joins (~justsomeg@unaffiliated/--/x-3805311) |
| 2020-09-27 21:17:12 | <Guest_94> | Can anyone walk me through in baby steps what I need to do I'm really sorry but pretty confused |
| 2020-09-27 21:17:28 | <normie> | sorry, what are you trying to do? |
| 2020-09-27 21:17:31 | <koz_> | Guest_94: Do you know how to use a shell as such? |
| 2020-09-27 21:17:32 | × | kritzefitz quits (~kritzefit@212.86.56.80) (Remote host closed the connection) |
| 2020-09-27 21:17:39 | <koz_> | Like, do you know commands like 'cd', 'touch', etc? |
| 2020-09-27 21:17:46 | <Guest_94> | Literally no idea |
| 2020-09-27 21:17:53 | <maerwald> | sclv: it actually doesn't change that file. That is created by the bootstrap script |
| 2020-09-27 21:18:01 | <ski> | Guest_94 : do you know how to edit a file, in a text editor ? |
| 2020-09-27 21:18:05 | × | vqrs quits (~vqrs@learnprogramming/regular/vqrs) (Ping timeout: 240 seconds) |
| 2020-09-27 21:18:08 | <Guest_94> | I do |
| 2020-09-27 21:18:52 | <ski> | Guest_94 : open your favorite text editor, and save a file `.bashrc' (in `/Users/School') containing the line `source /Users/School/.ghcup/env' |
| 2020-09-27 21:18:54 | × | Jesin quits (~Jesin@pool-72-66-101-18.washdc.fios.verizon.net) (Quit: Leaving) |
| 2020-09-27 21:19:02 | <fluturel> | use your file manager to go to the home folder, right-click and open terminal, write 'touch .bashrc' and write the thing these guys told you to |
| 2020-09-27 21:19:10 | <fluturel> | in that file |
| 2020-09-27 21:19:25 | <ski> | if you want to, you could first use `touch .bashrc' to create that file (as an empty file), and then change it with your editor |
| 2020-09-27 21:19:39 | <fluturel> | yes |
| 2020-09-27 21:19:59 | <ski> | (but i think most editors would support creating the file if it wasn't there before, as well ..) |
| 2020-09-27 21:20:03 | <normie> | you can just enter "cd" or "cd ~" to go to your home directory |
| 2020-09-27 21:20:04 | × | kuribas quits (~user@ptr-25vy0iaf5qqps5l6i5w.18120a2.ip6.access.telenet.be) (Quit: ERC (IRC client for Emacs 26.3)) |
| 2020-09-27 21:20:19 | → | vqrs joins (~vqrs@learnprogramming/regular/vqrs) |
| 2020-09-27 21:20:56 | <Guest_94> | do you know where to find the file after doing 'touch .bashrc'? |
| 2020-09-27 21:21:38 | <ski> | it should be in `/Users/School', assuming that was the current directory in the shell (in the terminal), when you ran the `touch .bashrc' command |
| 2020-09-27 21:22:03 | <koz_> | This is why I would follow ski's advice to just use your text editor and put the file in /Users/School that way. |
| 2020-09-27 21:22:18 | × | elliott_ quits (~elliott_@pool-100-36-54-163.washdc.fios.verizon.net) (Ping timeout: 260 seconds) |
| 2020-09-27 21:22:24 | <koz_> | If you dunno _anything_ about the shell, ignore _any_ suggestions vis a vis touch or cd or whatever, since it'll only make it worse. |
All times are in UTC.