Home liberachat/#haskell: Logs Calendar

Logs: liberachat/#haskell

←Prev  Next→ 1,804,533 events total
2021-08-28 02:18:53 FinnElija joins (~finn_elij@user/finn-elija/x-0085643)
2021-08-28 02:19:02 <Cale> You can also use reads
2021-08-28 02:19:22 <hololeap> which list needs to be nonempty?
2021-08-28 02:19:35 <Cale> the string you're parsing
2021-08-28 02:19:58 <hololeap> the string is made by running (\x -> [x]) on a Char from parsec
2021-08-28 02:20:11 <hololeap> so that won't be a problem
2021-08-28 02:20:40 <Cale> ah, yeah
2021-08-28 02:22:07 × falafel quits (~falafel@2600:100e:b144:da16:a499:a934:ae0d:b97) (Read error: Connection reset by peer)
2021-08-28 02:24:04 × Boarders quits (sid425905@id-425905.tooting.irccloud.com) (Ping timeout: 250 seconds)
2021-08-28 02:24:35 PotatoGim joins (sid99505@id-99505.tooting.irccloud.com)
2021-08-28 02:24:37 <hololeap> iqubic: if you use that parser, be sure to change the signature to: (Stream s m Char, Num a, Read a) => ParsecT s u m [a]
2021-08-28 02:24:38 × integral quits (sid296274@user/integral) (Ping timeout: 256 seconds)
2021-08-28 02:25:00 <hololeap> so that a) it's more flexible b) you can't try to parse anything other than a Num
2021-08-28 02:25:45 AlistairB joins (~AlistairB@121-200-5-212.79c805.syd.nbn.aussiebb.net)
2021-08-28 02:26:53 integral joins (sid296274@user/integral)
2021-08-28 02:27:16 Boarders joins (sid425905@id-425905.tooting.irccloud.com)
2021-08-28 02:27:55 <iqubic> hololeap: I'm using this signature:
2021-08-28 02:28:05 × td_ quits (~td@94.134.91.64) (Ping timeout: 250 seconds)
2021-08-28 02:28:10 <iqubic> type Parser = Parsec Void String
2021-08-28 02:28:17 <iqubic> singleDigit :: Num a => Parser a
2021-08-28 02:28:29 <iqubic> Using definitions from Megaparsec.
2021-08-28 02:28:31 × kimjetwav quits (~user@2607:fea8:235f:9730:4718:18aa:30c8:2ab8) (Ping timeout: 250 seconds)
2021-08-28 02:28:56 <hololeap> I think you'll need (Read a) as well
2021-08-28 02:28:57 × MQ-17J quits (~MQ-17J@8.6.144.209) (Ping timeout: 250 seconds)
2021-08-28 02:29:57 td_ joins (~td@muedsl-82-207-238-049.citykom.de)
2021-08-28 02:32:07 × azeem quits (~azeem@5.168.221.147) (Ping timeout: 240 seconds)
2021-08-28 02:32:23 azeem joins (~azeem@5.168.207.77)
2021-08-28 02:32:27 <iqubic> I won't, if I'm using this definition: "singleDigit = fmap (fromIntegral . digitToInt) digitChar"
2021-08-28 02:32:46 <iqubic> :t digitToInt
2021-08-28 02:32:47 <lambdabot> Char -> Int
2021-08-28 02:32:55 <iqubic> :t digitChar
2021-08-28 02:32:56 <lambdabot> error: Variable not in scope: digitChar
2021-08-28 02:33:17 <iqubic> digitChar being this: https://hackage.haskell.org/package/megaparsec-9.1.0/docs/Text-Megaparsec-Char.html#v:digitChar
2021-08-28 02:34:04 <iqubic> digitChar = satisfy isDigit
2021-08-28 02:34:09 <iqubic> :t isDigit
2021-08-28 02:34:10 <lambdabot> Char -> Bool
2021-08-28 02:42:10 matthias1 joins (~igloo@casewireless11.cwru.edu)
2021-08-28 02:43:13 × lbseale quits (~lbseale@user/ep1ctetus) (Read error: Connection reset by peer)
2021-08-28 02:43:27 × azeem quits (~azeem@5.168.207.77) (Ping timeout: 240 seconds)
2021-08-28 02:44:39 × matthias1 quits (~igloo@casewireless11.cwru.edu) (Remote host closed the connection)
2021-08-28 02:48:00 MQ-17J joins (~MQ-17J@d14-69-206-129.try.wideopenwest.com)
2021-08-28 02:54:57 × waleee quits (~waleee@2001:9b0:216:8200:d457:9189:7843:1dbd) (Ping timeout: 250 seconds)
2021-08-28 02:55:09 azeem joins (~azeem@5.168.207.77)
2021-08-28 03:01:27 × azeem quits (~azeem@5.168.207.77) (Ping timeout: 250 seconds)
2021-08-28 03:08:46 × img quits (~img@user/img) (Quit: ZNC 1.8.2 - https://znc.in)
2021-08-28 03:08:59 redeveder joins (~user@221.232.105.47)
2021-08-28 03:10:17 azeem joins (~azeem@5.168.207.77)
2021-08-28 03:11:16 img joins (~img@user/img)
2021-08-28 03:13:27 <dsal> digitToInt is still partial.
2021-08-28 03:16:52 × otto_s quits (~user@p5de2f51d.dip0.t-ipconnect.de) (Ping timeout: 252 seconds)
2021-08-28 03:18:36 otto_s joins (~user@p5de2f7f6.dip0.t-ipconnect.de)
2021-08-28 03:25:12 HarveyPwca joins (~HarveyPwc@2601:246:c180:a570:29df:3b00:ad0e:3a06)
2021-08-28 03:28:07 merijn joins (~merijn@83-160-49-249.ip.xs4all.nl)
2021-08-28 03:33:28 roboguy_ joins (~roboguy_@2605:a601:afe7:9f00:9004:d4f8:82b6:f105)
2021-08-28 03:36:30 bitdex joins (~bitdex@gateway/tor-sasl/bitdex)
2021-08-28 03:40:10 × markpythonicbtc quits (~textual@2601:647:5a00:35:15d1:827c:596e:b228) (Quit: My MacBook has gone to sleep. ZZZzzz…)
2021-08-28 03:44:47 × azeem quits (~azeem@5.168.207.77) (Ping timeout: 250 seconds)
2021-08-28 03:49:10 × sim590 quits (~simon@76.65.67.73) (Quit: WeeChat 2.9)
2021-08-28 03:54:49 azeem joins (~azeem@5.168.207.77)
2021-08-28 03:56:30 bitdex_ joins (~bitdex@gateway/tor-sasl/bitdex)
2021-08-28 03:56:48 × [itchyjunk] quits (~itchyjunk@user/itchyjunk/x-7353470) (Remote host closed the connection)
2021-08-28 03:58:30 <arahael> How do I list all the current targets I can build in a cabal project?
2021-08-28 03:58:51 × bitdex quits (~bitdex@gateway/tor-sasl/bitdex) (Ping timeout: 276 seconds)
2021-08-28 04:01:37 × edr quits (~edr@user/edr) (Ping timeout: 248 seconds)
2021-08-28 04:02:31 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 252 seconds)
2021-08-28 04:03:56 edr joins (~edr@enlo.co)
2021-08-28 04:03:56 × edr quits (~edr@enlo.co) (Changing host)
2021-08-28 04:03:56 edr joins (~edr@user/edr)
2021-08-28 04:10:59 <sclv> don’t think there’s a command at the moment :-/
2021-08-28 04:18:31 <arahael> Ah, that's a pity.
2021-08-28 04:19:01 × azeem quits (~azeem@5.168.207.77) (Ping timeout: 252 seconds)
2021-08-28 04:19:53 azeem joins (~azeem@5.168.207.77)
2021-08-28 04:32:53 × azeem quits (~azeem@5.168.207.77) (Ping timeout: 250 seconds)
2021-08-28 04:38:39 azeem joins (~azeem@5.168.207.77)
2021-08-28 04:41:39 × slowButPresent quits (~slowButPr@user/slowbutpresent) (Quit: leaving)
2021-08-28 04:42:07 × Guest9286 quits (~chris@81.96.113.213) (Ping timeout: 240 seconds)
2021-08-28 04:44:26 <arahael> Can I run hoogle on a different port?
2021-08-28 04:46:19 × favonia quits (~favonia@user/favonia) (Ping timeout: 250 seconds)
2021-08-28 04:47:02 chris joins (~chris@81.96.113.213)
2021-08-28 04:47:05 chris is now known as Guest9689
2021-08-28 04:50:14 justsomeguy joins (~justsomeg@user/justsomeguy)
2021-08-28 04:53:45 × Guest9689 quits (~chris@81.96.113.213) (Remote host closed the connection)
2021-08-28 04:54:22 chris joins (~chris@81.96.113.213)
2021-08-28 04:54:25 chris is now known as Guest3277
2021-08-28 04:58:08 <hololeap> arahael: see: hoogle server --help
2021-08-28 04:58:25 <arahael> hololeap: Ah, thanks, I was only using hoogle --help. :)
2021-08-28 04:58:40 × Guest3277 quits (~chris@81.96.113.213) (Ping timeout: 240 seconds)
2021-08-28 04:58:46 <arahael> And my attempts to specify a port only said "Unhandled argument, none expected..."
2021-08-28 04:59:29 <hololeap> in general, when something has subcommands, those also have flags (including help) that are passed after you specify the subcommand
2021-08-28 04:59:56 <hololeap> (for haskell stuff anyway)
2021-08-28 05:00:01 <arahael> Yes, but there was no indication it had subcommands. :)
2021-08-28 05:00:09 × AlistairB quits (~AlistairB@121-200-5-212.79c805.syd.nbn.aussiebb.net) (*.net *.split)
2021-08-28 05:00:09 × Cajun quits (~Cajun@user/cajun) (*.net *.split)
2021-08-28 05:00:34 <hololeap> if you look at the output of `hoogle --help`, you'll see "Commands:" which is how you can tell
2021-08-28 05:02:40 × azeem quits (~azeem@5.168.207.77) (Ping timeout: 240 seconds)
2021-08-28 05:02:54 <arahael> Hmm, right now I've got it running, but when I query http://192.168.1.2:8081, it hits the hoogle server (I see the log output), but the web browser basically hangs - something is blocked.
2021-08-28 05:03:58 <hololeap> probably try it with --local
2021-08-28 05:05:41 azeem joins (~azeem@5.168.235.73)
2021-08-28 05:05:48 <arahael> Just did, same thing. I notice that only the / path works, the rest are all broken, including hoogle.css
2021-08-28 05:09:14 <hololeap> not sure exactly what you're trying to do, but on my system I run `hoogle generate --local` and `hoogle server --local` to have offline access to my installed library docs

All times are in UTC.