Logs: liberachat/#haskell
| 2021-08-08 07:12:28 | <Cajun> | Drew[m]1 if only that werent in size 10 font lol |
| 2021-08-08 07:12:35 | <Cajun> | nice to know though |
| 2021-08-08 07:12:42 | → | mattil joins (~mattilinn@87-92-149-13.rev.dnainternet.fi) |
| 2021-08-08 07:13:04 | <tomsmeding> | and Handler a = a -> IO (), so makeSources :: ((AddHandler a, a -> IO ()), (AddHandler a, a -> IO ())), which happens to match (EventSource a, EventSource a) as defined in SlotMachine.hs, which is the type of the argument of networkDescription that it's put in :) |
| 2021-08-08 07:13:51 | <tomsmeding> | of course, without IO because makeSources is bound with <- first |
| 2021-08-08 07:14:28 | <euouae> | You're good :P I'm not |
| 2021-08-08 07:15:10 | <tomsmeding> | this is just experience with untangling messes of type synonyms more than anything else :p |
| 2021-08-08 07:15:56 | <euouae> | I'm still lost as to how one is supposed to learn a module of Haskell |
| 2021-08-08 07:16:01 | <Cajun> | there should be a tool for that.. or maybe an implementation of it in ghcide |
| 2021-08-08 07:16:20 | <euouae> | reactive-banana for example, I am looking at the docs but I don't get a sense of understanding what to do |
| 2021-08-08 07:16:28 | <Cajun> | hope and pray for good documentation :) |
| 2021-08-08 07:16:51 | <Cajun> | that pretty much goes for most languages, no documentation and its a real pain to decipher code |
| 2021-08-08 07:17:35 | <tomsmeding> | isn't reactive-banana an FRP framework? I've never worked with those, but I believe that's a whole separate paradigm that you might not have seen before yet |
| 2021-08-08 07:17:40 | → | cheater joins (~Username@user/cheater) |
| 2021-08-08 07:18:00 | <tomsmeding> | so unless you're exceptionally smart, I wouldn't expect being able to learn how to effectively use that from just per-function reference documentation |
| 2021-08-08 07:18:01 | <euouae> | yeah it is |
| 2021-08-08 07:18:17 | <tomsmeding> | (or unless that reference documentation is exceptionally good) |
| 2021-08-08 07:18:19 | <euouae> | Ok what's the first step then? Read a paper on FPR? |
| 2021-08-08 07:18:26 | <tomsmeding> | read a tutorial on FRP :p |
| 2021-08-08 07:18:41 | <tomsmeding> | or I guess a paper if you're cool |
| 2021-08-08 07:18:54 | → | gehmehgeh joins (~user@user/gehmehgeh) |
| 2021-08-08 07:19:17 | × | burnsidesLlama quits (~burnsides@dhcp168-011.wadham.ox.ac.uk) (Ping timeout: 245 seconds) |
| 2021-08-08 07:19:27 | <euouae> | No a tutorial is the right thing. I'll try, thanks |
| 2021-08-08 07:20:17 | <Drew[m]1> | reactive-banana also has a link to examples in its entry on the Haskell wiki |
| 2021-08-08 07:21:57 | <euouae> | Yeah I tried the simplest example and I'm having a hard time :P |
| 2021-08-08 07:22:39 | × | kmein quits (~weechat@user/kmein) (Quit: ciao kakao) |
| 2021-08-08 07:23:14 | → | kmein joins (~weechat@user/kmein) |
| 2021-08-08 07:33:11 | → | lavaman joins (~lavaman@98.38.249.169) |
| 2021-08-08 07:34:35 | sm | pops up from hangman-in-elm rabbit hole |
| 2021-08-08 07:35:04 | <Hecate> | hi sm! |
| 2021-08-08 07:35:12 | <sm> | hello Hecate |
| 2021-08-08 07:35:57 | × | raehik quits (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) (Ping timeout: 245 seconds) |
| 2021-08-08 07:37:01 | <euouae> | sm: This one? https://en.wikipedia.org/wiki/Hangman%27s_Elm |
| 2021-08-08 07:37:57 | <sm> | heh, no |
| 2021-08-08 07:38:52 | <sm> | nice tree, thanks |
| 2021-08-08 07:39:34 | × | lavaman quits (~lavaman@98.38.249.169) (Remote host closed the connection) |
| 2021-08-08 07:39:36 | ← | jakalx parts (~jakalx@base.jakalx.net) (Error from remote client) |
| 2021-08-08 07:46:38 | euouae | won't leave the office if they don't write a hangman using banana and hedgehog |
| 2021-08-08 07:47:11 | × | MQ-17J quits (~MQ-17J@8.21.10.94) (Ping timeout: 258 seconds) |
| 2021-08-08 07:47:33 | → | igghibu joins (~igghibu@37.120.201.121) |
| 2021-08-08 07:48:30 | <sm> | that's the spirit! |
| 2021-08-08 07:49:45 | <sm> | I put in about 1.25h on hangman in elm, it wasn't quite as productive as hoped |
| 2021-08-08 07:49:47 | → | mikoto-chan joins (~mikoto-ch@ip-193-121-10-50.dsl.scarlet.be) |
| 2021-08-08 07:50:44 | <sm> | next time: simply get console version working on the web using twain |
| 2021-08-08 07:56:32 | <[exa]> | web needs more console |
| 2021-08-08 07:58:19 | <Drew[m]1> | I've personally wasted quite some time bashing my head against the wall trying to understand various FRP libraries before I was ready. IMO Haskell FRP frameworks are something that Haskellers may be quick to hype but pay most dividends to folks who are considerably familiar with Haskell |
| 2021-08-08 08:01:40 | → | MQ-17J joins (~MQ-17J@8.6.144.235) |
| 2021-08-08 08:02:51 | <euouae> | It's a pyramid scheme |
| 2021-08-08 08:03:09 | <euouae> | :P but seriously I'm reading some tutorials and what I can. Let's see if I can understand something |
| 2021-08-08 08:07:30 | × | pavonia quits (~user@user/siracusa) (Quit: Bye!) |
| 2021-08-08 08:08:08 | → | hendursa1 joins (~weechat@user/hendursaga) |
| 2021-08-08 08:09:19 | × | igghibu quits (~igghibu@37.120.201.121) (Quit: Textual IRC Client: www.textualapp.com) |
| 2021-08-08 08:10:32 | → | lavaman joins (~lavaman@98.38.249.169) |
| 2021-08-08 08:10:43 | × | hendursaga quits (~weechat@user/hendursaga) (Ping timeout: 244 seconds) |
| 2021-08-08 08:13:27 | × | Vajb quits (~Vajb@2001:999:251:bada:1067:ceb1:260a:e753) (Ping timeout: 245 seconds) |
| 2021-08-08 08:13:46 | → | Vajb joins (~Vajb@2001:999:252:4e3c:27f9:d93:655e:583) |
| 2021-08-08 08:15:08 | × | lavaman quits (~lavaman@98.38.249.169) (Ping timeout: 256 seconds) |
| 2021-08-08 08:17:27 | × | geekosaur quits (~geekosaur@xmonad/geekosaur) (Killed (NickServ (GHOST command used by allbery_b))) |
| 2021-08-08 08:17:28 | → | allbery_b joins (~geekosaur@xmonad/geekosaur) |
| 2021-08-08 08:17:31 | allbery_b | is now known as geekosaur |
| 2021-08-08 08:17:56 | → | _ht joins (~quassel@82-169-194-8.biz.kpn.net) |
| 2021-08-08 08:28:33 | → | jakalx joins (~jakalx@base.jakalx.net) |
| 2021-08-08 08:29:59 | → | neceve joins (~quassel@2a02:c7f:607e:d600:f762:20dd:304e:4b1f) |
| 2021-08-08 08:31:55 | → | retro_ joins (~retro@5ec19a54.skybroadband.com) |
| 2021-08-08 08:32:12 | → | mc47 joins (~mc47@xmonad/TheMC47) |
| 2021-08-08 08:33:13 | <euouae> | how do I list the targets in cabal? |
| 2021-08-08 08:34:40 | <euouae> | Hm, maybe not possible... |
| 2021-08-08 08:35:06 | × | takuan quits (~takuan@178-116-218-225.access.telenet.be) (Ping timeout: 258 seconds) |
| 2021-08-08 08:35:06 | × | retroid_ quits (~retro@5ec19a54.skybroadband.com) (Ping timeout: 258 seconds) |
| 2021-08-08 08:36:12 | → | retroid_ joins (~retro@5ec19a54.skybroadband.com) |
| 2021-08-08 08:36:52 | × | retro_ quits (~retro@5ec19a54.skybroadband.com) (Ping timeout: 272 seconds) |
| 2021-08-08 08:37:20 | <euouae> | How can I load the example in reactive-banana in ghci? |
| 2021-08-08 08:37:53 | <euouae> | I tried `cabal repl ./doc/examples/Counter.hs` but there's no target including it |
| 2021-08-08 08:38:18 | × | xkuru quits (~xkuru@user/xkuru) (Remote host closed the connection) |
| 2021-08-08 08:42:53 | <euouae> | I've also tried `cabal repl` at the root directory followed by `:load ./doc/examples/Counter.hs` |
| 2021-08-08 08:43:00 | <euouae> | I don't get any errors but there does not seem to be any symbols exported |
| 2021-08-08 08:43:25 | <euouae> | I only get: [21 of 21] Compiling Main ( doc/examples/Counter.hs, interpreted ) which I'm not sure what it means |
| 2021-08-08 08:44:03 | <euouae> | with `:browse Main` I get `main:Main.main :: IO ()` but :P again not sure what this means |
| 2021-08-08 08:44:38 | <Cale> | try executing main? |
| 2021-08-08 08:45:01 | <euouae> | Not in scope |
| 2021-08-08 08:46:18 | <euouae> | There's this bug about implicit module name handling, https://github.com/haskell/cabal/issues/5665 |
| 2021-08-08 08:46:31 | <euouae> | Could it be that I'm encountering this bug? I'm noticing that Counter.hs does not have a module name |
| 2021-08-08 08:47:02 | <Cale> | Well, if it's intended to produce an executable, its module name would be Main (implicitly) |
| 2021-08-08 08:47:33 | → | lavaman joins (~lavaman@98.38.249.169) |
| 2021-08-08 08:49:07 | <euouae> | I don't know if it is intended or not |
| 2021-08-08 08:49:12 | <euouae> | I'm just trying to load the example and run main |
| 2021-08-08 08:49:21 | <euouae> | This example, https://github.com/HeinrichApfelmus/reactive-banana/blob/master/reactive-banana/doc/examples/Counter.hs |
| 2021-08-08 08:49:42 | → | merijn joins (~merijn@83-160-49-249.ip.xs4all.nl) |
| 2021-08-08 08:50:48 | × | Erutuon quits (~Erutuon@user/erutuon) (Ping timeout: 272 seconds) |
| 2021-08-08 08:50:58 | × | econo quits (uid147250@user/econo) (Quit: Connection closed for inactivity) |
| 2021-08-08 08:51:50 | × | lavaman quits (~lavaman@98.38.249.169) (Ping timeout: 250 seconds) |
| 2021-08-08 08:51:53 | <Cale> | One thing that of course works is just to install the library and then load the thing in ghci |
| 2021-08-08 08:52:21 | <euouae> | How do you do that |
| 2021-08-08 08:52:31 | <euouae> | I know I can use cabal-install to install the library, but how do I load the thing? |
| 2021-08-08 08:55:41 | <Cale> | You'd just give the file as a command line argument to ghci |
| 2021-08-08 08:55:50 | × | hnOsmium0001 quits (uid453710@id-453710.stonehaven.irccloud.com) (Quit: Connection closed for inactivity) |
| 2021-08-08 08:58:47 | <euouae> | `cabal install reactive-banana` can't resolve dependencies |
| 2021-08-08 09:00:19 | <Cale> | I don't suppose you have the nix package manager hanging around on your system already? :) |
| 2021-08-08 09:00:47 | <maerwald[m]> | beat the problem to death with more complexity :p |
| 2021-08-08 09:00:50 | <Cale> | I have a one line script called "ghcWithPackages" in my ~/bin which consists of: |
All times are in UTC.