Logs: freenode/#haskell
| 2021-02-27 13:07:01 | × | swarmcollective quits (~joseph@cpe-65-31-18-174.insight.res.rr.com) (Quit: WeeChat 2.8) |
| 2021-02-27 13:07:39 | × | dxld quits (~dxld@80-109-136-248.cable.dynamic.surfer.at) (Quit: Bye) |
| 2021-02-27 13:08:08 | → | Spidey joins (51cfc725@81-207-199-37.fixed.kpn.net) |
| 2021-02-27 13:08:47 | → | LKoen joins (~LKoen@185.61.176.203) |
| 2021-02-27 13:09:26 | <tomsmeding> | BigLama: could you double-check for me what the exact type of r2 is in your code? |
| 2021-02-27 13:09:42 | <Spidey> | I'm trying to install ghcup on Ubuntu on Windows 10. I'm get compilation errors. Is that known? |
| 2021-02-27 13:10:05 | <maerwald> | Spidey: what kind |
| 2021-02-27 13:10:37 | <Spidey> | I've just checked that the dependencies are met and cleaned up the temp build folder. It will print the message again, 1 sec. |
| 2021-02-27 13:10:44 | <tomsmeding> | BigLama: if you're using an editor with IDE integration you can just check the type that way; if not, you could put the following after line 21 of your paste and read the compiler error: (r2 :: ()) `seq` return () |
| 2021-02-27 13:11:34 | <tomsmeding> | (there are easier/better ways but this one is the easiest to describe I think) |
| 2021-02-27 13:11:34 | × | emmanuel_erc quits (~user@2603-7000-9600-01c9-c589-d024-9ed2-1840.res6.spectrum.com) (Read error: Connection reset by peer) |
| 2021-02-27 13:11:45 | <Spidey> | [ ghc-make ] # on Win64, "install -s" calls a strip that doesn't understand 64bit binaries. |
| 2021-02-27 13:11:46 | <Spidey> | [ ghc-make ] "/home/spidey/.ghcup/ghc/8.10.4/lib/ghc-8.10.4/bin/ghc-pkg" --force --global-package-db "/home/spidey... |
| 2021-02-27 13:11:48 | <Spidey> | [ ghc-make ] Makefile:51: recipe for target 'install' failed |
| 2021-02-27 13:12:02 | → | emmanuel_erc joins (~user@2603-7000-9600-01c9-c589-d024-9ed2-1840.res6.spectrum.com) |
| 2021-02-27 13:12:14 | × | dftxbs3e quits (~dftxbs3e@unaffiliated/dftxbs3e) (Quit: Leaving) |
| 2021-02-27 13:12:24 | → | dftxbs3e joins (~dftxbs3e@unaffiliated/dftxbs3e) |
| 2021-02-27 13:12:49 | <maerwald> | Spidey: can you pastebin the whole error? https://paste.tomsmeding.com/ |
| 2021-02-27 13:13:22 | <Spidey> | https://paste.tomsmeding.com/Ranh3C52 |
| 2021-02-27 13:13:40 | × | daffy quits (01c84f1a@1.200.79.26) (Quit: Connection closed) |
| 2021-02-27 13:13:49 | <Spidey> | I may pastebin the whole build log if necessary. |
| 2021-02-27 13:14:13 | <BigLama> | tomsmeding: with your method, It says "BsResponse" |
| 2021-02-27 13:14:15 | <Spidey> | I'm using the install script from the website: curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh |
| 2021-02-27 13:14:47 | × | jb55 quits (~jb55@gateway/tor-sasl/jb55) (Remote host closed the connection) |
| 2021-02-27 13:14:52 | <maerwald> | Spidey: there's stuff cut off in the past |
| 2021-02-27 13:14:56 | <tomsmeding> | BigLama: cool, that's what I thought |
| 2021-02-27 13:15:05 | <maerwald> | *paste |
| 2021-02-27 13:15:08 | → | emi00 joins (524df5b9@82.77.245.185) |
| 2021-02-27 13:15:08 | × | hrdl quits (~ef24a0e6@unaffiliated/hrdl) (Quit: leaving) |
| 2021-02-27 13:15:12 | → | jb55 joins (~jb55@gateway/tor-sasl/jb55) |
| 2021-02-27 13:15:25 | <tomsmeding> | maerwald: I think they're copying from their terminal, which probably cuts off; is there a log file they can send? |
| 2021-02-27 13:15:34 | → | hrdl joins (~ef24a0e6@unaffiliated/hrdl) |
| 2021-02-27 13:15:46 | <maerwald> | ~/.ghcup/logs |
| 2021-02-27 13:15:52 | <tomsmeding> | Spidey: ^ |
| 2021-02-27 13:16:50 | <Spidey> | https://paste.tomsmeding.com/EtVs82M7 |
| 2021-02-27 13:17:33 | <tomsmeding> | BigLama: can you try replacing the 'mempty' on the last line of your paste with the following: cookieJar (responseCookieJar (toVanillaResponse r2)) |
| 2021-02-27 13:17:50 | <Spidey> | Yeah, I was copying from the terminal. I had looked on the log file and couldn't see anything more/before the part printed on the terminal that would |
| 2021-02-27 13:17:51 | <Spidey> | indicate the root cause. |
| 2021-02-27 13:18:21 | <tomsmeding> | Spidey: when in doubt, always send more logs, and avoid truncating logs, when asking questions :) |
| 2021-02-27 13:18:39 | <Spidey> | Ok, sure. |
| 2021-02-27 13:18:42 | <BigLama> | tomsmd |
| 2021-02-27 13:18:57 | <maerwald> | ghc-pkg: Couldn't open database /home/spidey/.ghcup/ghc/8.10.4/lib/ghc-8.10.4/package.conf.d for modification: {handle: /home/spidey/.ghcup/ghc/8.10.4/lib/ghc-8.10.4/package.conf.d/package.cache.lock}: hLock: invalid argument (Invalid argument) |
| 2021-02-27 13:19:01 | <maerwald> | I haven't seen that before |
| 2021-02-27 13:19:07 | <tomsmeding> | maerwald: what do you think of the change (as of this morning) that paste code blocks now scroll horizontally instead of overflowing the page? |
| 2021-02-27 13:19:14 | <BigLama> | tomsmeding: Not for the second requestion then ? Only the third ? |
| 2021-02-27 13:19:19 | → | raehik joins (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) |
| 2021-02-27 13:19:34 | tomsmeding | thinks maybe this should be a mobile-only change |
| 2021-02-27 13:19:39 | <BigLama> | (Sorry about the mistakes, the auto-complete got me every time...) |
| 2021-02-27 13:19:54 | <tomsmeding> | BigLama: the second does the login, right, and the third should use that login? |
| 2021-02-27 13:19:59 | <tomsmeding> | if that's correct, then yes |
| 2021-02-27 13:20:00 | <BigLama> | Yes |
| 2021-02-27 13:20:12 | <maerwald> | tomsmeding: I think it's fine either way, not sure if a button to force wrapping would be interesting |
| 2021-02-27 13:21:06 | × | zmv- quits (~zmv@189.79.134.102) (Ping timeout: 256 seconds) |
| 2021-02-27 13:21:10 | <hololeap> | % type Foo = Int; type Bar = Int; type Baz t = Int |
| 2021-02-27 13:21:10 | <yahb> | hololeap: |
| 2021-02-27 13:21:20 | <tomsmeding> | maerwald: that's a decent idea actually |
| 2021-02-27 13:21:23 | <hololeap> | % (5 :: Foo) == (5 :: Bar) |
| 2021-02-27 13:21:23 | <yahb> | hololeap: True |
| 2021-02-27 13:21:43 | <hololeap> | % (5 :: Baz Bool) == (5 :: Baz Float) |
| 2021-02-27 13:21:43 | <yahb> | hololeap: True |
| 2021-02-27 13:21:56 | × | sQVe quits (~sQVe@unaffiliated/sqve) (Ping timeout: 240 seconds) |
| 2021-02-27 13:22:17 | <BigLama> | tomsmeding: r3 <- req GET url NoReqBody bsResponse (cookieJar (responseCookieJar (toVanillaResponse r2))) |
| 2021-02-27 13:22:27 | <BigLama> | returns the following error : |
| 2021-02-27 13:22:35 | × | bergey quits (~user@pool-74-108-99-127.nycmny.fios.verizon.net) (Ping timeout: 265 seconds) |
| 2021-02-27 13:22:51 | <Spidey> | I think I found a solution: https://stackoverflow.com/a/66191627 |
| 2021-02-27 13:22:51 | <BigLama> | https://paste.tomsmeding.com/Z25MC3Vn |
| 2021-02-27 13:23:26 | × | mputz quits (~Thunderbi@dslb-088-064-063-125.088.064.pools.vodafone-ip.de) (Quit: mputz) |
| 2021-02-27 13:25:11 | <tomsmeding> | BigLama: oh wait remove that toVanillaResponse |
| 2021-02-27 13:25:20 | <tomsmeding> | just 'cookieJar (responseCookieJar r2)' |
| 2021-02-27 13:25:45 | tomsmeding | is too lazy to compile req myself |
| 2021-02-27 13:25:55 | <maerwald> | Spidey: WSL 1? |
| 2021-02-27 13:26:03 | <Spidey> | Yes. |
| 2021-02-27 13:26:07 | <maerwald> | Use WSL 2 |
| 2021-02-27 13:26:27 | <Spidey> | I don't use it too frequently, I think I install Ubuntu a while ago and never upgraded. |
| 2021-02-27 13:26:44 | <maerwald> | it seems it's a known limitation on WSL1 |
| 2021-02-27 13:26:48 | × | xff0x quits (~xff0x@2001:1a81:5311:f400:99b1:a451:602d:e252) (Ping timeout: 246 seconds) |
| 2021-02-27 13:27:02 | <BigLama> | tomsmeding: it compiles but it still asks for authentification the second time. Maybe I should set "keep-alive" in the headers ? |
| 2021-02-27 13:27:12 | × | da39a3ee5e6b4b0d quits (~da39a3ee5@2403:6200:8876:c8ae:4c2c:c3c0:6062:2fc9) (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 2021-02-27 13:27:16 | <tomsmeding> | BigLama: "asks for authentication"? |
| 2021-02-27 13:27:19 | <BigLama> | In python, I can examine the headers but I don't know how to it in Haskell... |
| 2021-02-27 13:27:24 | <tomsmeding> | what service are you connecting to |
| 2021-02-27 13:27:28 | → | heatsink joins (~heatsink@2600:1700:bef1:5e10:44cd:7ec7:332d:f0ab) |
| 2021-02-27 13:27:49 | <Spidey> | Thanks. Gotta reboot to test it. |
| 2021-02-27 13:27:54 | × | Spidey quits (51cfc725@81-207-199-37.fixed.kpn.net) (Quit: Connection closed) |
| 2021-02-27 13:27:57 | → | xff0x joins (~xff0x@2001:1a81:5311:f400:8291:22ac:ed1e:10e3) |
| 2021-02-27 13:28:30 | <BigLama> | tomsmeding: the url is a private login page (for my university). Once you are logged in, you should not see the login page again. But the third request redirects to the login page... |
| 2021-02-27 13:28:43 | <tomsmeding> | I see |
| 2021-02-27 13:28:58 | <tomsmeding> | you can use responseHeader to get a single header, but unsure how to get all of them |
| 2021-02-27 13:29:33 | <tomsmeding> | oh perhaps: responseHeaders (toVanillaResponse r3) |
| 2021-02-27 13:30:40 | → | theelous3 joins (~theelous3@unaffiliated/theelous3) |
| 2021-02-27 13:30:53 | <tomsmeding> | BigLama: can you perhaps print the value returned by 'responseCookieJar r2'? |
| 2021-02-27 13:31:12 | <tomsmeding> | and look in your web browser what cookies are set by the website after login |
| 2021-02-27 13:31:28 | × | Mrbuck quits (~Mrbuck@gateway/tor-sasl/mrbuck) (Quit: WeeChat 1.9.1) |
| 2021-02-27 13:31:32 | <tomsmeding> | I have to go unfortunately, good luck :) |
| 2021-02-27 13:31:51 | × | olligobber quits (olligobber@gateway/vpn/privateinternetaccess/olligobber) (Remote host closed the connection) |
| 2021-02-27 13:31:52 | × | emmanuel_erc quits (~user@2603-7000-9600-01c9-c589-d024-9ed2-1840.res6.spectrum.com) (Read error: Connection reset by peer) |
| 2021-02-27 13:31:53 | <BigLama> | tomsmeding: thanks for the help ! |
| 2021-02-27 13:32:26 | × | heatsink quits (~heatsink@2600:1700:bef1:5e10:44cd:7ec7:332d:f0ab) (Ping timeout: 264 seconds) |
| 2021-02-27 13:32:54 | → | emmanuel_erc joins (~user@2603-7000-9600-01c9-c589-d024-9ed2-1840.res6.spectrum.com) |
| 2021-02-27 13:38:21 | → | son0p joins (~son0p@181.136.122.143) |
All times are in UTC.