Home freenode/#haskell: Logs Calendar

Logs: freenode/#haskell

←Prev  Next→
Page 1 .. 875 876 877 878 879 880 881 882 883 884 885 .. 5022
502,152 events total
2020-10-26 17:48:44 × Guest_34 quits (b2a4dcc6@178-164-220-198.pool.digikabel.hu) (Remote host closed the connection)
2020-10-26 17:49:46 × bahamas quits (~lucian@unaffiliated/bahamas) (Quit: leaving)
2020-10-26 17:52:15 × kish` quits (~oracle@unaffiliated/oracle) (Remote host closed the connection)
2020-10-26 17:54:29 shatriff joins (~vitaliish@176.52.219.10)
2020-10-26 17:55:01 <hyperisco> so I am in IO, and I just want to throw an exception with a string message… how can I construct such an exception? do I have to define my own data type? is there a predefined one in base?
2020-10-26 17:55:43 kish joins (~oracle@unaffiliated/oracle)
2020-10-26 17:56:01 <geekosaur> throwIO (ErrorCall "waaah") -- ?
2020-10-26 17:56:27 × amiri quits (~amiri@cpe-76-91-154-9.socal.res.rr.com) (Remote host closed the connection)
2020-10-26 17:57:17 <hyperisco> okay thanks
2020-10-26 17:57:55 POGtastic joins (~POGtastic@2601:1c0:6000:fe1:b424:b773:d69:762d)
2020-10-26 17:58:29 <geekosaur> (this is more or less `error` but with `throwIO` instead of `throw`, that may not be what you want)
2020-10-26 17:58:41 <POGtastic> hi all, what is it called when you constrain a generic data type to instances of another typeclass? For example, `data (Ord a) => Tree a`
2020-10-26 17:58:56 <hyperisco> if it can be caught in IO then that is fine
2020-10-26 17:58:58 <monsterchrom> alternatively, userError :: String -> IOException
2020-10-26 17:59:32 <monsterchrom> in fact, IO's fail s = ioError (userError s)
2020-10-26 17:59:43 amiri joins (~amiri@cpe-76-91-154-9.socal.res.rr.com)
2020-10-26 18:00:01 <hyperisco> oh can I jsut call fail then? seems so
2020-10-26 18:00:02 × Guest23433 quits (~Waithamai@185.244.214.217) ()
2020-10-26 18:00:42 <monsterchrom> Yeah, and the catcher catches IOException and check isUserError
2020-10-26 18:01:01 <hyperisco> > catchException (fail "my error") \_ -> putStrLn "caught!"
2020-10-26 18:01:03 <lambdabot> error:
2020-10-26 18:01:03 <lambdabot> Unexpected lambda expression in function application:
2020-10-26 18:01:03 <lambdabot> \ _ -> putStrLn "caught!"
2020-10-26 18:01:11 × thunderrd quits (~thunderrd@183.182.115.160) (Ping timeout: 272 seconds)
2020-10-26 18:01:14 <hyperisco> the spoils of BlockArguments
2020-10-26 18:01:20 <monsterchrom> heh
2020-10-26 18:01:45 <monsterchrom> also, yahb is better for IO
2020-10-26 18:03:31 <POGtastic> nm, i figured it out - haskell needs the DatatypeContexts extension for this
2020-10-26 18:03:49 <geekosaur> yes. because it's fairly useless
2020-10-26 18:03:50 <srid> It would be really nice to make the Haskell Wiki https://wiki.haskell.org/ look a bit modern. Has anyone thought about it?
2020-10-26 18:03:52 <srid> (.. also update its content)
2020-10-26 18:04:16 <monsterchrom> It already looks postmodern to me.
2020-10-26 18:04:28 hackage ffmpeg-light 0.13.0 - Minimal bindings to the FFmpeg library. https://hackage.haskell.org/package/ffmpeg-light-0.13.0 (AnthonyCowley)
2020-10-26 18:04:36 <hyperisco> % catch (fail "my error") \e -> const (putStrLn "caught!") (e :: IOException)
2020-10-26 18:04:36 <yahb> hyperisco: caught!
2020-10-26 18:04:45 <monsterchrom> But content update would be good, I haven't checked.
2020-10-26 18:04:52 mananamenos__ joins (~mananamen@vpn236-203.vpns.upv.es)
2020-10-26 18:05:12 × Zetagon quits (~leo@c151-177-52-233.bredband.comhem.se) (Ping timeout: 272 seconds)
2020-10-26 18:05:21 <monsterchrom> Generally, any presence of round-corner graphical buttons is postmodern to me.
2020-10-26 18:05:39 <geekosaur> heh
2020-10-26 18:05:41 <monsterchrom> Any use of custom downloadable fonts is postmodern to me.
2020-10-26 18:05:55 <monsterchrom> Any contentless aesthetics is postmodern to me.
2020-10-26 18:06:08 <hyperisco> the wiki looks old?
2020-10-26 18:06:08 <dminuoso> monsterchrom: What's that *graphical* button you mentioned?
2020-10-26 18:06:23 <monsterchrom> haha
2020-10-26 18:06:39 × shafox quits (~shafox@106.51.234.111) (Quit: Leaving)
2020-10-26 18:07:18 <monsterchrom> Contentful, informative aesthetics exist. But "buttons should have round corners" is not one of them.
2020-10-26 18:07:25 <hyperisco> srid, can you point out to someone stuck in the 00's what is dated about the wiki design?
2020-10-26 18:08:22 × mananamenos_ quits (~mananamen@84.122.202.215.dyn.user.ono.com) (Ping timeout: 272 seconds)
2020-10-26 18:08:49 <srid> hyperisco: for one, the header styling is terrible. eg: go to https://wiki.haskell.org/Books and look at level-2 headers ... I had trouble locating them (eg: look at the "Foundations" header which has a bad contrast compared to the surrounding text)
2020-10-26 18:09:24 <srid> And just as a nicety, it doesn't hurt to make the wiki style consistent with https://www.haskell.org/ - though that would require substantial work from someone proficient in CSS and mediawiki theming
2020-10-26 18:09:31 × alp quits (~alp@2a01:e0a:58b:4920:fda3:96de:97b6:c040) (Ping timeout: 272 seconds)
2020-10-26 18:10:05 <hyperisco> so a typography problem more specifically
2020-10-26 18:10:13 <dminuoso> "header", "styling", "contract", "CSS"
2020-10-26 18:10:17 <dminuoso> You sound more than qualified
2020-10-26 18:10:39 <dminuoso> srid: Why not get the work started?
2020-10-26 18:10:39 <srid> dminuoso: what's your point?
2020-10-26 18:10:44 <monsterchrom> the issue with level-2 headers is also a mediawiki theming issue.
2020-10-26 18:10:46 × britva quits (~britva@31-10-157-156.cgn.dynamic.upc.ch) (Quit: This computer has gone to sleep)
2020-10-26 18:10:47 <dminuoso> Im volunteering you.
2020-10-26 18:11:00 <Uniaika> :D
2020-10-26 18:11:12 <hyperisco> I have a feeling there is something amiss with the wiki markup, though I am no expert on it… headers are supposed to be indexed, suggesting to me it isn't the right kind of header
2020-10-26 18:11:17 <Uniaika> “Congratulations citizen for your volunteer drafting!”
2020-10-26 18:11:19 <monsterchrom> In addition, it also plays poorly with people's habit of using bloody unnecessary bolds for book/article titles there.
2020-10-26 18:11:49 <dminuoso> For what its worth, being dated is unlikely to be a deterrence. People *still* use LYAH.
2020-10-26 18:12:03 × ericsagnes quits (~ericsagne@2405:6580:0:5100:29f6:82d:9503:e1) (Ping timeout: 272 seconds)
2020-10-26 18:12:05 <monsterchrom> I.e., if you go unbold all book titles there, it's an instant 50% improvement.
2020-10-26 18:12:09 × geekosaur quits (82659a09@host154-009.vpn.uakron.edu) (Ping timeout: 245 seconds)
2020-10-26 18:12:10 chaosmasttter joins (~chaosmast@p200300c4a73c460118080c3b2ced1444.dip0.t-ipconnect.de)
2020-10-26 18:12:15 <srid> dminuoso: I'm happy to volunteer with the content; I'd like to meet someone that is interesting in improving the design. Which is I came here to ask. Do I understand right that nobody cares about it in IRC?
2020-10-26 18:12:22 × dyeplexer quits (~lol@unaffiliated/terpin) (Remote host closed the connection)
2020-10-26 18:12:25 <srid> * dminuoso: I'm happy to volunteer with the content; I'd like to meet someone that is interested in improving the design. Which is I came here to ask. Do I understand right that nobody cares about it in IRC?
2020-10-26 18:12:30 <monsterchrom> the remaining 50% being making level-2 section headers just a tiny bit more visible
2020-10-26 18:12:32 <srid> * dminuoso: I'm happy to volunteer with the content; I'd like to meet someone that is interested in improving the design. Which is why I came here to ask. Do I understand right that nobody cares about it in IRC?
2020-10-26 18:12:59 <dminuoso> srid: Sorry, must have been written before I connected to the BNC then.
2020-10-26 18:13:21 <srid> I'm sure if we ask for feedback from people not stuck in 00's, they might have more to say.
2020-10-26 18:13:36 <dminuoso> srid: I think the topic of the wiki was raised on haskell-cafe recently
2020-10-26 18:13:46 × Aquazi quits (uid312403@gateway/web/irccloud.com/x-zhrhclsenottifhf) (Quit: Connection closed for inactivity)
2020-10-26 18:13:58 bartemius joins (~bartemius@109.252.20.20)
2020-10-26 18:14:11 <hyperisco> I agree with the typography problem but personally I don't see any problem with the overall aesthetic
2020-10-26 18:14:21 <srid> dminuoso: link? I see one for wikibook: https://mail.haskell.org/pipermail/haskell-cafe/2020-September/132779.html
2020-10-26 18:14:37 geowiesnot joins (~user@87-89-181-157.abo.bbox.fr)
2020-10-26 18:14:38 thunderrd joins (~thunderrd@183.182.115.32)
2020-10-26 18:14:54 <dminuoso> srid: Id have to dig, it was a few months ago.
2020-10-26 18:15:22 <dminuoso> IIRC it was said that folks stopped contributing after it was modernized.
2020-10-26 18:15:28 <dminuoso> The wiki is pretty dead now
2020-10-26 18:15:54 <monsterchrom> hrm, but wikibook/haskell is distinct from wiki.haskell.org. even in terms of contributors.
2020-10-26 18:16:07 <Uniaika> yes, it's an entirely different platform
2020-10-26 18:16:09 <Uniaika> for starters
2020-10-26 18:16:44 <monsterchrom> wikibook/haskell actually has better structure and content today than when I checked in the 00's.
2020-10-26 18:17:03 <Uniaika> monsterchrom: the 00's have ended 10 years ago, dear :)
2020-10-26 18:17:45 <monsterchrom> It's monad chapter in the 00's, oh God, such a longwinded fictional story that got nowhere at all.
2020-10-26 18:18:09 <hyperisco> I think lines and gradients are out of style now
2020-10-26 18:18:11 <monsterchrom> either that or the author really had a PhD in allegorical literature techniques.
2020-10-26 18:18:42 × Guest18 quits (567e8866@gateway/web/cgi-irc/kiwiirc.com/ip.86.126.136.102) (Quit: Connection closed)
2020-10-26 18:18:47 <Uniaika> srid: btw, if you're interested in improving the docs at large, you can join #haskell-docs
2020-10-26 18:18:55 <hyperisco> I noticed a bit of dimensionality and colour came back after that weird bit around the Windows Metro era…
2020-10-26 18:19:27 <hyperisco> a rebound from extreme minimalism
2020-10-26 18:19:41 idhugo joins (~idhugo@563472ae.rev.stofanet.dk)
2020-10-26 18:20:09 <monsterchrom> Uniaika: Still, there is one kind of improvement that doesn't happen often enough, not even over decades. Deletion. People are usually too polite to delete someone else's stuff.

All times are in UTC.