Home freenode/#haskell: Logs Calendar

Logs: freenode/#haskell

←Prev  Next→
Page 1 .. 204 205 206 207 208 209 210 211 212 213 214 .. 5022
502,152 events total
2020-09-25 16:50:45 × heatsink quits (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) (Remote host closed the connection)
2020-09-25 16:51:39 × Saten-san quits (~Saten-san@ip-62-235-73-121.dsl.scarlet.be) (Quit: WeeChat 2.8)
2020-09-25 16:52:09 shad0w_ joins (~shad0w_@160.202.37.157)
2020-09-25 16:55:17 × oisdk quits (~oisdk@2001:bb6:3329:d100:fd58:7633:8b1d:97) (Quit: My MacBook has gone to sleep. ZZZzzz…)
2020-09-25 16:55:43 × coot quits (~coot@37.30.52.6.nat.umts.dynamic.t-mobile.pl) (Quit: coot)
2020-09-25 16:55:54 oisdk joins (~oisdk@2001:bb6:3329:d100:fd58:7633:8b1d:97)
2020-09-25 16:56:20 <cohn> can anyone recommend a good command line argument processing library?
2020-09-25 16:56:50 nineonine joins (~nineonine@216.81.48.202)
2020-09-25 16:57:14 frdg joins (47b88ff9@pool-71-184-143-249.bstnma.fios.verizon.net)
2020-09-25 16:57:25 × mu quits (~mu@unaffiliated/mu) (Read error: Connection reset by peer)
2020-09-25 16:57:37 <frdg> how can I use stack to compile binaries?
2020-09-25 16:57:56 mu joins (~mu@unaffiliated/mu)
2020-09-25 16:58:09 <dsal> frdg: stack build
2020-09-25 16:58:16 × snakemasterflex quits (~snakemast@213.100.206.23) (Ping timeout: 256 seconds)
2020-09-25 16:58:41 <dsal> cohn: I usually just use optparse-applicative, but depending on what your needs are, there are easier or fancier things.
2020-09-25 16:59:01 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 264 seconds)
2020-09-25 16:59:05 <cohn> dsal: easy is always good. I'll take a look, thanks!
2020-09-25 17:00:07 <dsal> cohn: There's this thing, but I've not used it because I always end up doing something a little weird: https://hackage.haskell.org/package/optparse-generic-1.4.3/docs/Options-Generic.html
2020-09-25 17:00:37 × wroathe quits (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) (Ping timeout: 265 seconds)
2020-09-25 17:00:43 heatsink joins (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net)
2020-09-25 17:01:32 <frdg> dsal: ok that is what I thought. I have been running stack build but only get this ouput: https://dpaste.org/YDpW. Where do the binaries go?
2020-09-25 17:01:36 × frdg quits (47b88ff9@pool-71-184-143-249.bstnma.fios.verizon.net) (Client Quit)
2020-09-25 17:02:45 × shad0w_ quits (~shad0w_@160.202.37.157) (Remote host closed the connection)
2020-09-25 17:02:59 crobbins joins (~crobbins@2601:2c1:380:ec40:2d4a:f96c:b859:c0ae)
2020-09-25 17:03:21 × otulp quits (~otulp@ti0187q162-5025.bb.online.no) (Remote host closed the connection)
2020-09-25 17:03:38 <dsal> stack path --local-install-root
2020-09-25 17:03:41 <dsal> Or you can just 'stack install'
2020-09-25 17:04:11 <dsal> That warning is kind of interesting, though. It implies you've modified a generated .cabal and you've probably got some confusion there.
2020-09-25 17:04:55 Sgeo joins (~Sgeo@ool-18b982ad.dyn.optonline.net)
2020-09-25 17:05:16 sand_dull joins (~theuser@62.182.99.37)
2020-09-25 17:05:27 × heatsink quits (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 265 seconds)
2020-09-25 17:05:58 frdg joins (47b88ff9@pool-71-184-143-249.bstnma.fios.verizon.net)
2020-09-25 17:07:14 fendor_ is now known as fendor
2020-09-25 17:07:27 wroathe joins (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net)
2020-09-25 17:07:28 × mu quits (~mu@unaffiliated/mu) (Read error: Connection reset by peer)
2020-09-25 17:07:59 mu joins (~mu@unaffiliated/mu)
2020-09-25 17:08:42 Saten-san joins (~Saten-san@ip-62-235-73-121.dsl.scarlet.be)
2020-09-25 17:08:58 mirrorbird joins (~psutcliff@m83-187-173-228.cust.tele2.se)
2020-09-25 17:10:14 × elliott_ quits (~elliott_@pool-100-36-54-163.washdc.fios.verizon.net) (Ping timeout: 272 seconds)
2020-09-25 17:10:42 <frdg> dsal: stack install worked. No idea how I have managed to mess the cabal file up.
2020-09-25 17:10:42 × frdg quits (47b88ff9@pool-71-184-143-249.bstnma.fios.verizon.net) (Client Quit)
2020-09-25 17:11:18 <dsal> The instructions suggest you could just delete it. If you have package.yaml and the .cabal, that's going to be confusing.
2020-09-25 17:11:30 fluturel joins (~fluturel@82.137.14.51)
2020-09-25 17:11:56 <fluturel> hello?
2020-09-25 17:11:56 × wroathe quits (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) (Ping timeout: 256 seconds)
2020-09-25 17:12:11 <yushyin> hello fluturel
2020-09-25 17:12:48 × raichoo quits (~raichoo@213.240.178.58) (Quit: Lost terminal)
2020-09-25 17:13:03 <fluturel> so i just learning haskell a few minutes ago. Don't have any questions yet, just wanted to see if the channel is still active
2020-09-25 17:13:56 elliott_ joins (~elliott_@pool-100-36-54-163.washdc.fios.verizon.net)
2020-09-25 17:14:43 <yushyin> actually it is one of the more active channels on freenode
2020-09-25 17:14:49 geekosaur joins (42d52102@66.213.33.2)
2020-09-25 17:14:57 hackage prolude 0.0.0.0 - ITProTV's custom prelude https://hackage.haskell.org/package/prolude-0.0.0.0 (fozworth)
2020-09-25 17:15:17 coot joins (~coot@37.30.52.6.nat.umts.dynamic.t-mobile.pl)
2020-09-25 17:15:40 <fluturel> is my understanding correct that i can execute little haskell programs right here in the chat?
2020-09-25 17:15:52 <dsal> No, but there are a couple of bots that can evaluate expressions.
2020-09-25 17:16:17 <fluturel> how would one go about doing that?
2020-09-25 17:16:21 <dsal> You can speak to those bots privately if you want to try to use them as a repl, but ghci will be a lot better.
2020-09-25 17:16:54 <dsal> > length . words $ "this is lambdabot"
2020-09-25 17:16:58 <lambdabot> 3
2020-09-25 17:17:07 <dsal> % length . words $ "this is yahb"
2020-09-25 17:17:08 <yahb> dsal: 3
2020-09-25 17:17:28 × mu quits (~mu@unaffiliated/mu) (Read error: Connection reset by peer)
2020-09-25 17:17:34 heatsink joins (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net)
2020-09-25 17:17:40 <fluturel> ooh, that's interesting
2020-09-25 17:17:42 <dsal> They're different, but helpful for demonstrating basic ideas.
2020-09-25 17:17:43 <fluturel> thank you
2020-09-25 17:17:54 mu joins (~mu@unaffiliated/mu)
2020-09-25 17:18:12 <dsal> Both will be terribly frustrating if you try to use them as ghci. ghci will be terribly frustrating if you try to use it as a scratch pad.
2020-09-25 17:18:44 <fluturel> i will certainly come back here, should i need help (i most certainly will). Coming from
2020-09-25 17:18:59 × sand_dull quits (~theuser@62.182.99.37) (Ping timeout: 265 seconds)
2020-09-25 17:19:06 <fluturel> Coming from C++ and the like, i heards it can be pretty brutal
2020-09-25 17:19:28 × Saten-san quits (~Saten-san@ip-62-235-73-121.dsl.scarlet.be) (Ping timeout: 265 seconds)
2020-09-25 17:19:28 × knupfer quits (~Thunderbi@200116b82c8bb80040b575c5aa538973.dip.versatel-1u1.de) (Remote host closed the connection)
2020-09-25 17:19:30 <dsal> Haskell is pretty easy. Haskell with a brain conditioned on C++ might be hard.
2020-09-25 17:19:36 knupfer joins (~Thunderbi@200116b82c8bb80079b1331ba61465fc.dip.versatel-1u1.de)
2020-09-25 17:20:17 <fluturel> I do have some experience with Common LISP, but I dont know if that is considered functional nowadays
2020-09-25 17:21:11 <dsal> It's not even so much the "functional" bits. It's just a different language with different conventions (including calling conventions), culture, etc...
2020-09-25 17:22:11 <dsal> Things that might be important for optimizing or organizing C++ code could be hugely detrimental to your Haskell experience and lead down dark paths.
2020-09-25 17:22:13 Tuplanolla joins (~Tuplanoll@91-159-68-239.elisa-laajakaista.fi)
2020-09-25 17:22:15 <ski> fluturel : just lurking in here can also be pretty useful, when learning
2020-09-25 17:22:18 <dsal> fluturel: How are you going about learning haskell?
2020-09-25 17:22:43 <dsal> Yeah, one neat thing about lurking is that you'll get exposed to a lot of things you hadn't considered.
2020-09-25 17:23:00 <fluturel> like using guards as ifs and such?
2020-09-25 17:23:27 <dsal> Just general structure (though I almost never use 'if' in any of my code).
2020-09-25 17:24:26 <fluturel> well, i got a book that has most of the language features. It's more like a doc than anything else. And also, some tutorials that I found. I am starting with learnyouahaskell.com
2020-09-25 17:24:31 <ski> fluturel : you will learn to use recursion for looping, pattern-matching for destructuring and branching, learn to program (mostly/usually) without mutable variables, get access to a nice, flexible, powerful, static type system
2020-09-25 17:24:59 merijn joins (~merijn@83-160-49-249.ip.xs4all.nl)
2020-09-25 17:25:02 <ski> fluturel : oh, and higher-order programming, with lexical scope
2020-09-25 17:25:43 <ski> @where CIS194
2020-09-25 17:25:43 <lambdabot> https://www.seas.upenn.edu/~cis194/spring13/lectures.html
2020-09-25 17:26:02 <fluturel> ski : i know what most of the things you said are. No idea about pattern-matching, sounds like you are talking about regex
2020-09-25 17:26:05 <ski> fluturel : that ^ has exercises, if you want some to chew on (LYAH doesn't have any)
2020-09-25 17:26:29 <fluturel> Oh, thank you so much, just bookmarked it!
2020-09-25 17:27:04 <ski> fluturel : have you used `destructuring-bind', in CL ?
2020-09-25 17:27:16 <fluturel> Yes
2020-09-25 17:27:40 <fluturel> So it's like that
2020-09-25 17:27:40 × mu quits (~mu@unaffiliated/mu) (Read error: Connection reset by peer)
2020-09-25 17:27:41 <ski> well, pattern-matching is like that, "only more so", also incorporates branching on the possible shapes a piece of datum may assume
2020-09-25 17:27:53 mu joins (~mu@unaffiliated/mu)
2020-09-25 17:28:11 × John20 quits (~John@82.46.59.122) (Ping timeout: 240 seconds)

All times are in UTC.