Logs: freenode/#haskell
| 2020-11-07 22:54:23 | × | xff0x quits (~fox@2001:1a81:52a6:6c00:d4de:a271:4d1e:7f67) (Ping timeout: 272 seconds) |
| 2020-11-07 22:54:44 | → | xff0x joins (~fox@2001:1a81:52a6:6c00:4a69:14bb:4df0:c5bd) |
| 2020-11-07 22:54:58 | → | daydaynatation joins (~user@roc37-h01-176-170-197-243.dsl.sta.abo.bbox.fr) |
| 2020-11-07 22:56:01 | <daydaynatation> | when I do this: runghc -package inline-c-cpp InlineCPP.hs, I got: Variable not in scope: main :: IO a0 |
| 2020-11-07 22:56:06 | <daydaynatation> | why |
| 2020-11-07 22:56:18 | <daydaynatation> | It's just a main function in it |
| 2020-11-07 22:57:36 | × | jakob_ quits (~textual@dynamic-093-135-009-167.93.135.pool.telefonica.de) (Quit: My Laptop has gone to sleep. ZZZzzz…) |
| 2020-11-07 23:01:33 | <bqv> | daydaynatation: does it have type IO a? |
| 2020-11-07 23:03:21 | → | falafel joins (~falafel@2601:247:c400:1390:7811:313f:d0f3:f9f4) |
| 2020-11-07 23:05:28 | <maralorn> | srid: I don‘t know. I think writing a default.nix for the hls repo wouldn‘t be to hard. |
| 2020-11-07 23:06:30 | hackage | type-of-html 1.6.1.0 - High performance type driven html generation. https://hackage.haskell.org/package/type-of-html-1.6.1.0 (knupfer) |
| 2020-11-07 23:06:42 | <daydaynatation> | bqv: it has IO () |
| 2020-11-07 23:07:10 | <daydaynatation> | bqv: i can compile it with ghc without prob |
| 2020-11-07 23:07:37 | → | conal joins (~conal@ip-66-115-176-219.creativelink.net) |
| 2020-11-07 23:08:51 | <daydaynatation> | bqv: sorry, just realize the error comes from another source: |
| 2020-11-07 23:08:53 | <daydaynatation> | inline-c-cpp:0:67: error: |
| 2020-11-07 23:08:53 | <daydaynatation> | • Variable not in scope: main :: IO a0 |
| 2020-11-07 23:08:53 | <daydaynatation> | • Perhaps you meant ‘min’ (imported from Prelude) |
| 2020-11-07 23:09:30 | → | jakob_ joins (~textual@dynamic-093-135-009-167.93.135.pool.telefonica.de) |
| 2020-11-07 23:09:37 | <bqv> | ..are you calling main? |
| 2020-11-07 23:09:52 | <daydaynatation> | yes |
| 2020-11-07 23:10:12 | <daydaynatation> | Does main have to be inside a Main module? |
| 2020-11-07 23:10:25 | <Tattletale> | I believe so, yes |
| 2020-11-07 23:10:37 | <daydaynatation> | I see, let me try |
| 2020-11-07 23:10:43 | <Tattletale> | I've run into issues from GHC when I have main in a module not called Main |
| 2020-11-07 23:11:01 | hackage | type-of-html 1.6.1.1 - High performance type driven html generation. https://hackage.haskell.org/package/type-of-html-1.6.1.1 (knupfer) |
| 2020-11-07 23:11:14 | <Tattletale> | I don't think the file itself needs to be called Main.hs. It just needs that 'module Main' at the top |
| 2020-11-07 23:11:31 | × | jakob_ quits (~textual@dynamic-093-135-009-167.93.135.pool.telefonica.de) (Client Quit) |
| 2020-11-07 23:12:42 | <daydaynatation> | I see |
| 2020-11-07 23:13:17 | × | renzhi quits (~renzhi@2607:fa49:655f:e600::28da) (Ping timeout: 244 seconds) |
| 2020-11-07 23:14:30 | × | fendor quits (~fendor@078132052150.public.t-mobile.at) (Quit: Leaving) |
| 2020-11-07 23:20:04 | <davean> | daydaynatation: Why are you calling main? |
| 2020-11-07 23:20:27 | <davean> | and what are you doing with its return there that its wondering about it type? |
| 2020-11-07 23:20:42 | × | Deide quits (~Deide@217.155.19.23) (Read error: Connection reset by peer) |
| 2020-11-07 23:20:54 | <davean> | If it *did* have type IO () you'd get a different error |
| 2020-11-07 23:21:03 | → | Deide joins (~Deide@217.155.19.23) |
| 2020-11-07 23:21:13 | <davean> | daydaynatation: so something you're claiming doesn't add up here. |
| 2020-11-07 23:23:30 | <daydaynatation> | davean: let me post it |
| 2020-11-07 23:24:08 | × | knupfer quits (~Thunderbi@200116b82cc0b9002da38997f72b7245.dip.versatel-1u1.de) (Ping timeout: 244 seconds) |
| 2020-11-07 23:24:20 | → | texasmyn_ joins (~texasmyns@64.44.55.108) |
| 2020-11-07 23:24:28 | × | texasmynsted quits (~texasmyns@64.44.55.84) (Ping timeout: 256 seconds) |
| 2020-11-07 23:25:02 | → | texasmynsted joins (~texasmyns@64.44.55.108) |
| 2020-11-07 23:25:11 | → | riddle00 joins (~riddle00@78-62-232-255.static.zebra.lt) |
| 2020-11-07 23:25:49 | <daydaynatation> | davean: https://pastebin.com/CkXuRvK4 |
| 2020-11-07 23:26:29 | × | __monty__ quits (~toonn@unaffiliated/toonn) (Quit: leaving) |
| 2020-11-07 23:27:04 | <Tattletale> | so it's not actually calling main explicitly |
| 2020-11-07 23:28:02 | <daydaynatation> | Tattletale: why is that> |
| 2020-11-07 23:28:31 | × | texasmyn_ quits (~texasmyns@64.44.55.108) (Ping timeout: 246 seconds) |
| 2020-11-07 23:28:43 | <Tattletale> | Oh, I was just thinking aloud. I'll try running it locally to see what happens |
| 2020-11-07 23:29:04 | <davean> | But to explain, its because theres no call to main |
| 2020-11-07 23:29:05 | × | elfets quits (~elfets@ip-37-201-23-96.hsi13.unitymediagroup.de) (Read error: Connection reset by peer) |
| 2020-11-07 23:29:10 | <davean> | theres just a definition of main, which is fine |
| 2020-11-07 23:29:27 | <davean> | but again we were trying to sort through your claims above, so this helps! |
| 2020-11-07 23:29:33 | × | nbloomf quits (~nbloomf@2600:1700:ad14:3020:d012:b0d5:8436:4dad) (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 2020-11-07 23:31:25 | × | xerox_ quits (~xerox@unaffiliated/xerox) (Ping timeout: 240 seconds) |
| 2020-11-07 23:33:45 | → | justsomeguy joins (~justsomeg@216.186.218.241) |
| 2020-11-07 23:33:46 | × | justsomeguy quits (~justsomeg@216.186.218.241) (Changing host) |
| 2020-11-07 23:33:46 | → | justsomeguy joins (~justsomeg@unaffiliated/--/x-3805311) |
| 2020-11-07 23:33:55 | × | codygman quits (~codygman@47-184-107-46.dlls.tx.frontiernet.net) (Read error: Connection reset by peer) |
| 2020-11-07 23:34:38 | → | codygman joins (~codygman@47-184-107-46.dlls.tx.frontiernet.net) |
| 2020-11-07 23:35:36 | → | merijn joins (~merijn@83-160-49-249.ip.xs4all.nl) |
| 2020-11-07 23:35:36 | → | Neuromancer joins (~Neuromanc@unaffiliated/neuromancer) |
| 2020-11-07 23:36:53 | × | riddle00 quits (~riddle00@78-62-232-255.static.zebra.lt) (Ping timeout: 260 seconds) |
| 2020-11-07 23:37:09 | × | conal quits (~conal@ip-66-115-176-219.creativelink.net) (Quit: Computer has gone to sleep.) |
| 2020-11-07 23:37:09 | → | riddle00 joins (~riddle00@78-62-232-255.static.zebra.lt) |
| 2020-11-07 23:37:40 | → | conal joins (~conal@ip-66-115-176-219.creativelink.net) |
| 2020-11-07 23:38:16 | × | conal quits (~conal@ip-66-115-176-219.creativelink.net) (Client Quit) |
| 2020-11-07 23:39:35 | → | conal joins (~conal@ip-66-115-176-219.creativelink.net) |
| 2020-11-07 23:39:51 | × | conal quits (~conal@ip-66-115-176-219.creativelink.net) (Client Quit) |
| 2020-11-07 23:41:27 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 258 seconds) |
| 2020-11-07 23:41:43 | <Tattletale> | daydaynatation: I ran into some issues with the compilation due to the missing header files, so I got rid of them. |
| 2020-11-07 23:41:51 | <Tattletale> | Once I did, I could compile with no problem. |
| 2020-11-07 23:42:10 | <Tattletale> | The only C++ code left in cppTest involves std::cout and std::endl |
| 2020-11-07 23:42:28 | × | vfaronov quits (~vfaronov@broadband-95-84-210-78.ip.moscow.rt.ru) (Quit: vfaronov) |
| 2020-11-07 23:42:35 | × | gehmehgeh quits (~ircuser1@gateway/tor-sasl/gehmehgeh) (Quit: Leaving) |
| 2020-11-07 23:43:36 | <Tattletale> | Note that the std::count code doesn't actually print anything for me. When I run the program, nothing is printed |
| 2020-11-07 23:43:48 | <Tattletale> | *cout |
| 2020-11-07 23:45:01 | × | riddle00 quits (~riddle00@78-62-232-255.static.zebra.lt) (Ping timeout: 256 seconds) |
| 2020-11-07 23:45:07 | × | britva quits (~britva@31-10-157-156.cgn.dynamic.upc.ch) (Quit: This computer has gone to sleep) |
| 2020-11-07 23:47:36 | × | lawr3nce quits (~lawr3nce@gateway/tor-sasl/lawr3nce) (Remote host closed the connection) |
| 2020-11-07 23:48:46 | → | britva joins (~britva@2a02:aa13:7240:2980:80a0:64f3:77d6:a0d0) |
| 2020-11-07 23:49:46 | × | britva quits (~britva@2a02:aa13:7240:2980:80a0:64f3:77d6:a0d0) (Client Quit) |
| 2020-11-07 23:50:13 | <bqv> | the one frustrating thing with haskell(ghc) i find, is that my file structure always ends up with a Namespace.hs and Namespace/ in every folder, and none of my file managers sort those next to each other |
| 2020-11-07 23:51:02 | × | natechan quits (~natechan@108-233-125-227.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 264 seconds) |
| 2020-11-07 23:51:05 | × | pta2002 quits (~quassel@104.248.23.110) (Ping timeout: 268 seconds) |
| 2020-11-07 23:52:42 | → | nbloomf joins (~nbloomf@2600:1700:ad14:3020:d012:b0d5:8436:4dad) |
| 2020-11-07 23:53:21 | → | thir joins (~thir@p200300f27f0b7e00f4e9381c2bf90854.dip0.t-ipconnect.de) |
| 2020-11-07 23:55:16 | <monochrom> | Yeah that could be a bit annoying. I imagine that one day if I'm annoyed enough, I may simply move Namespace.hs to Namespace/IndexHTML.hs :) |
| 2020-11-07 23:57:12 | × | Tario quits (~Tario@201.192.165.173) (Read error: Connection reset by peer) |
| 2020-11-07 23:57:28 | → | conal joins (~conal@64.71.133.70) |
| 2020-11-07 23:58:14 | × | thir quits (~thir@p200300f27f0b7e00f4e9381c2bf90854.dip0.t-ipconnect.de) (Ping timeout: 244 seconds) |
| 2020-11-07 23:59:34 | × | Ariakenom quits (~Ariakenom@h-82-196-111-76.NA.cust.bahnhof.se) (Quit: Leaving) |
| 2020-11-08 00:00:02 | × | jtk quits (~jtk@154.13.1.56) () |
| 2020-11-08 00:00:47 | <sm[m]> | bqv: agreed |
| 2020-11-08 00:01:21 | <sm[m]> | I mean, the fact that both are required is tedious |
| 2020-11-08 00:02:08 | × | Deide quits (~Deide@217.155.19.23) (Quit: Seeee yaaaa) |
| 2020-11-08 00:04:42 | <daydaynatation> | Tattletale: thx |
| 2020-11-08 00:05:00 | <Tattletale> | np |
| 2020-11-08 00:05:41 | <daydaynatation> | Tattletale: Did you mean you runghc the file with no problem? |
| 2020-11-08 00:05:47 | <Tattletale> | That's correct |
All times are in UTC.