<    April 2017    >
Su Mo Tu We Th Fr Sa  
                   1  
 2  3  4  5  6  7  8  
 9 10 11 12 13 14 15  
16 17 18 19 20 21 22  
23 24 25 26 27 28 29  
30
00:01 vaibhavsagar joined
00:01 NoCreativity joined
00:06 abhiroop joined
00:12 meandi_2 joined
00:15 yellowj joined
00:18 Gurkenglas_ joined
00:22 exferenceBot joined
00:22 danny_ joined
00:35 danny_ joined
00:43 TerNit joined
00:45 Sose_ joined
00:46 abhiroop joined
00:48 <TerNit> What lib can I try for handle keypress events in console?
00:50 <geekosaur> brick, hscurses/ncurses, terminfo for unix-only as raw as you can get without switching to a GUI (which isn't very)
00:50 <geekosaur> win32 package has windows options
00:50 dni- joined
00:52 eacameron joined
00:58 eacameron joined
00:59 <TerNit> Thank you
00:59 patbecich joined
00:59 vaibhavsagar joined
01:03 eacamero_ joined
01:08 eacameron joined
01:10 TerNit left
01:13 m1dnight_ joined
01:19 abhiroop joined
01:31 kadoban joined
01:39 carlomagno joined
01:40 carlomagno joined
01:40 Youmu joined
01:46 Sose_ joined
01:53 pixelfog joined
02:00 eacameron joined
02:07 eacameron joined
02:10 <peterbecich> Hi, I'm working on the Tic Tac Toe network game from the NICTA/Data61 course. I'm trying to implement `game` (https://github.com/data61/fp-course/blob/master/projects/NetworkServer/haskell/src/Network/Server/TicTacToe/Game.hs#L201-L206) with `execLoop` (https://github.com/data61/fp-course/blob/master/projects/NetworkServer/haskell/src/Network/Server/TicTacToe/Loop.hs#L33-L40). I need to provide an `Env` to `exe
02:10 <peterbecich> `s` I presume is an empty Tic Tac Toe `Board`. If `game` is used solely in GHCI, then I should be able to make up a bogus `Env` for `execLoop`. Here is the only usage of `game`: https://github.com/data61/fp-course/blob/master/projects/NetworkServer/haskell/src/Network/Server/TicTacToe/Main.hs#L8
02:11 <peterbecich> Am I approaching this the correct way? Thank you!
02:11 <dibblego> be advised, that exercise needs a bit of work, which should be happening this year
02:11 eacamero_ joined
02:13 <peterbecich> dibblego: thanks, this project has been instructive and helpful but I'll keep that in mind
02:13 takle joined
02:15 eacameron joined
02:19 eacamero_ joined
02:22 conal joined
02:27 carlomagno joined
02:39 dni- joined
02:55 exferenceBot joined
02:56 Kuros` joined
02:59 hexagoxel joined
03:01 takle joined
03:07 abhiroop joined
03:13 takle joined
03:13 texasmynsted joined
03:22 takle joined
03:26 takle_ joined
03:32 systemfault joined
03:32 govg joined
03:33 holygun joined
03:36 uglyfigurine joined
03:41 danny_ joined
03:42 Uniaika joined
03:47 abhiroop joined
03:58 takle joined
04:02 des_ joined
04:03 Uniaika joined
04:06 takle joined
04:09 alibabzo joined
04:09 Uniaika joined
04:13 takle joined
04:19 Uniaika joined
04:28 dni- joined
04:29 takle joined
04:34 Uniaika joined
04:39 takle joined
04:46 abhiroop joined
04:47 Sose_ joined
04:49 aarvar joined
04:55 abhiroop joined
04:56 nullcone joined
05:16 Paper-Mario joined
05:19 trudyjane joined
05:20 <trudyjane> join
05:24 nicknovitski joined
05:26 takle joined
05:28 trudyjane joined
05:49 takle joined
05:51 ThomasLocke joined
05:51 ThomasLocke joined
05:56 mstruebing joined
05:56 takle joined
06:09 peterbec` joined
06:10 patbecich joined
06:17 dni- joined
06:20 patbecich joined
06:25 takle joined
06:26 ploop joined
06:28 seagreen joined
06:31 Gurkenglas_ joined
06:33 thc202 joined
06:38 takle joined
06:45 takle joined
06:49 jle` joined
06:53 takle joined
06:56 dmi3y joined
07:01 takle joined
07:03 kritzcreek joined
07:05 dmi3y joined
07:10 galderz joined
07:10 dni- joined
07:10 takle joined
07:21 patbecich joined
07:22 takle joined
07:25 <eatman> Hi!
07:26 <vaibhavsagar> hello!
07:31 madjestic joined
07:33 mstruebing joined
07:35 Pupnik joined
07:37 uglyfigurine joined
07:37 takle joined
07:40 aarvar joined
07:41 bvad joined
07:44 takle joined
07:45 dmi3y joined
07:53 takle joined
08:00 Axman6 joined
08:03 nacon joined
08:05 mstruebing joined
08:11 grdryn joined
08:17 hphuoc25 joined
08:17 seagreen joined
08:24 takle joined
08:26 patbecich joined
08:26 earldouglas joined
08:27 merijn joined
08:29 mattyw joined
08:31 takle joined
08:42 mthek joined
08:43 takle joined
08:43 hphuoc25 joined
08:46 takle joined
08:51 takle joined
08:56 m` joined
08:59 dmi3y_ joined
09:01 MVQq joined
09:04 takle_ joined
09:13 takle_ joined
09:24 Gloomy joined
09:32 slomo joined
09:36 takle joined
09:37 abhiroop_ joined
09:37 netheranthem joined
09:57 abhiroop joined
09:57 govg joined
09:58 slomo joined
10:00 pbrant joined
10:01 m` joined
10:04 NoCreativity_ joined
10:10 zero_byte joined
10:22 vaibhavsagar_ joined
10:26 mlehmk joined
10:42 dmi3y joined
10:47 abhiroop joined
10:55 slomo joined
10:57 colt44 joined
11:03 hphuoc25 joined
11:07 pungi-man joined
11:14 mstruebing joined
11:15 mounty joined
11:23 tusj joined
11:23 galderz joined
11:30 curry[m] joined
11:30 Geekingfrog joined
11:31 abhiroop joined
11:37 tusj joined
11:38 tusj joined
11:43 Gloomy joined
11:45 <eatman> Hi there.
11:46 <eatman> Do you guys know about some sort of *adjacency matrix* Haskell library?
11:46 <eatman> Need it in order to give the Conway's game of life a try within a State monad.
11:46 NeverDie_ joined
11:51 grdryn joined
11:53 <eatman> Well, I might be a *simple* Graph in this case...
11:54 NeverDie joined
12:00 watersoul joined
12:02 <adarqui_> eatman: I think Data.Graph uses an adjacency list representation, in the containers package
12:02 <Cale> I'd probably just use a Data.Map, typically.
12:03 <Cale> But also, are you playing Conway's game of life on weird graphs? I wouldn't expect to usually need to represent the underlying graph because it's so uniform -- just record which cells are active somehow.
12:05 watersoul joined
12:05 vaibhavsagar_ joined
12:09 mthek joined
12:10 watersoul joined
12:15 watersoul joined
12:15 <eatman> adarqui_: This is the one I'm reading about.
12:16 <eatman> Just wondering why I can load the Data.Graph module in a regular ghci instance but not inside an existing project.
12:20 watersoul joined
12:25 watersoul joined
12:29 <Geekingfrog> eatman: you may be interested in reading this: https://samtay.github.io/posts/comonadic-game-of-life.html
12:35 <eatman> Geekingfrog: Bookmarked.
12:35 <eatman> I'd like to give it a try before reading **The over optimized solution**.
12:37 <Geekingfrog> Good habit imo. I linked that mostly because that's a quite interesting approach, very different from what you would see in an imperative language.
12:40 <eatman> To be honnest, this is mainly because of the "let's read how it's supposed to be done" habit that I failed Haskell every time before.
12:41 Gloomy joined
12:41 dennisvennink joined
12:51 abhiroop joined
13:06 abhiroop joined
13:15 fendor joined
13:20 Gloomy joined
13:20 Gloomy joined
13:25 <Akii> anyone using pipes with servant?
13:27 <Akii> https://hackage.haskell.org/package/pipes-concurrency-2.0.7/docs/Pipes-Concurrent-Tutorial.html#g:7
13:27 <Akii> guess that would work
13:29 salva joined
13:29 tractatus joined
13:30 mizu_no_oto_work joined
13:30 acarrico joined
13:40 abhiroop joined
13:41 jathan joined
13:45 stef204 joined
13:51 chlong joined
14:00 takle joined
14:04 abhiroop joined
14:07 Dietr1ch joined
14:12 moei joined
14:14 hphuoc25 joined
14:16 nicknovitski joined
14:20 yellowj joined
14:25 hphuoc25 joined
14:29 hedgehog1024 joined
14:33 danny_ joined
14:41 <hedgehog1024> Exesu me, can somebody explain what are benefits of machines over the conduits?
14:45 harfangk joined
14:47 Gurkenglas_ joined
14:49 conal joined
14:59 abhiroop joined
15:03 uglyfigurine joined
15:06 abhiroop joined
15:14 azahi joined
15:16 abhiroop joined
15:30 mthek joined
15:31 hphuoc25 joined
15:31 des_ joined
15:36 aarvar joined
15:44 azahi joined
15:46 azahi left
15:48 kadoban joined
15:50 des_ joined
15:52 Ferdirand joined
15:56 jcottrell joined
15:59 conal joined
16:19 <evilmaid> Akii: hey. i finished my project last night. nothing fancy, especially after you helped get the data under control, the rest was just some simple transformations and presentation. so, as an exercise, i implemented a.. ToPretty typeclass along the lines of To/FromJSON, for representation of the structure http://lpaste.net/5331030037632122880 lines 10-15 with example at line 50. is that
16:19 <evilmaid> completely insane? i mean, at least i didn't do instance Show, right? :)
16:20 <evilmaid> the only difference from your contribution yesterday Maybe Entry as entry, of course :eyeroll:, was missing in 5 out of 400, heh
16:22 <Akii> heh
16:22 <Akii> of course
16:22 <Akii> looks good :D
16:23 <Akii> as far as I understand Show isn't supposed to be for pretty printing, so adding a type-class of your own is the right thing to do
16:25 <evilmaid> phew. well, either way this is a learning / for fun project. technically the first piece of haskell code that i'll actually be running a couple of times a day. so thanks again :)
16:25 rembo10 joined
16:25 <Iceland_jack> I wish Haskell came with a pretty printing class
16:25 <Akii> you're welcome :D was a fun excercise
16:26 <Iceland_jack> Record syntax is so damn busy
16:28 <evilmaid> considering "pretty" is subjective i don't mind it having it's own typeclass(es). who says everyone likes to see it with ansi codes flaring up their terminal. maybe someone prefers markdown o_^
16:29 <Iceland_jack> nonetheless
16:36 dennisvennink joined
16:38 GreySunshine joined
16:41 danny_ joined
16:44 zaquest joined
16:47 baweaver left
16:56 uglyfigurine joined
16:56 mstruebing joined
16:59 meandi joined
16:59 Durbley joined
17:00 abhiroop joined
17:01 Ferdirand joined
17:02 jrajav joined
17:02 dennisvennink joined
17:04 <nitrix> I don't think it's meant for pretty printing either. It forms a retraction and section with Read. A few simple laws would be read . show = id
17:06 <geekosaur> there's pretty printing classes on hackage
17:07 <geekosaur> the problem with pretty printing is everyone wants something different :)
17:10 mizu_no_oto_work joined
17:12 hphuoc25 joined
17:15 merijn joined
17:20 abhiroop joined
17:22 carlomagno joined
17:25 abhiroop joined
17:30 abhiroop joined
17:31 slomo joined
17:31 slomo joined
17:40 carlomagno joined
17:45 pilne joined
17:46 xmonader joined
17:49 pepe__ joined
17:50 Prutheus joined
17:52 peterbecich joined
17:57 meandi joined
17:58 holygun joined
18:11 uglyfigurine joined
18:17 dmj` joined
18:21 carlomagno joined
18:22 carlomagno joined
18:33 govg joined
18:41 Mutter joined
18:50 MotherFlojo joined
18:52 danny_ joined
18:52 meandi joined
18:56 dmi3y joined
19:32 NeverDie_ joined
19:34 locoloco joined
19:42 argent0 joined
19:45 GreySunshine joined
19:47 yellowj joined
19:50 holygun joined
19:53 peterbec` joined
19:57 meandi joined
20:00 geekosaur joined
20:01 takle joined
20:05 takle joined
20:10 madjestic joined
20:10 ralu joined
20:14 <NeverDie_> Hey if anyone's interested, there's a functional programming discord server here with lots of Haskell users: discord.me/functionalprogramming
20:15 hphuoc25 joined
20:30 GreySunshine_ joined
20:31 takle_ joined
20:39 skeet70 joined
20:43 holygun joined
20:50 takle joined
20:53 mstruebing joined
20:54 douglascorrea joined
20:56 mizu_no_oto_work joined
20:56 NoCreativity joined
20:57 GreySunshine__ joined
21:01 xunien joined
21:06 uglyfigurine joined
21:07 uglyfigurine joined
21:21 abhiroop joined
21:31 dni- joined
21:36 sigmundv__ joined
21:41 des_ joined
21:42 Deide joined
21:43 vmeson joined
21:43 vmeson joined
21:48 malaclyps joined
21:50 geppettodivacin joined
21:52 thebored joined
21:53 hiratara joined
21:55 xmonader joined
21:58 malaclyps joined
22:12 abhiroop joined
22:27 takle_ joined
22:30 mstruebing joined
22:31 hiratara joined
22:34 mengu joined
22:37 <bvad> I'm trying to implement MonadBaseControl for my transformer stack, but I'm kind of stuck. The problem is shown here: http://lpaste.net/227445533667491840 with comments containing the type errors I'm getting
22:37 <bvad> Any help is much appreciated!
22:40 uglyfigurine joined
22:48 binaryplease joined
22:53 xificurC joined
22:57 Iceland_jack joined
22:59 xmonader joined
23:02 abhiroop joined
23:06 ycw joined
23:17 Gurkenglas_ joined
23:19 dni- joined
23:25 uglyfigurine joined
23:45 abhiroop joined
23:47 newhoggy joined