2025/03/01

Newest at the top

2025-03-01 11:54:14 +0100 <Leary> tomsmeding: https://hackage.haskell.org/package/BASIC-0.1.5.0/docs/Language-BASIC.html
2025-03-01 11:52:26 +0100 <euouae> nice, thakn you
2025-03-01 11:51:55 +0100 <tomsmeding> you always need to list all modules that you're defining in the cabal file, either in other-modules or in exposed-modules (the latter relevant only for libraries)
2025-03-01 11:51:55 +0100__monty__(~toonn@user/toonn) toonn
2025-03-01 11:51:27 +0100 <tomsmeding> right, you need `other-modules: Tests` in the test-suite block in your cabal file
2025-03-01 11:51:27 +0100 <euouae> It's a warning-Wmissing-home-modules
2025-03-01 11:51:17 +0100 <euouae> naming Tests as the module
2025-03-01 11:51:10 +0100 <euouae> I get `These modules are needed for compilation but not listed in your .cabal file's other-modules for ‘leetcode-0.1.0.0-inplace-leetcode-test’ :`
2025-03-01 11:51:05 +0100 <tomsmeding> `import Tests`?
2025-03-01 11:50:55 +0100 <euouae> Tests.hs has the hedgehog generated/discovered tests, how can I import that in Main.hs?
2025-03-01 11:50:40 +0100 <euouae> Another stupid question, in my test/ I have Main.hs and Tests.hs
2025-03-01 11:50:28 +0100 <euouae> I get ti
2025-03-01 11:49:37 +0100 <tomsmeding> would that be `Exercises.12 input`? how would the parser even know what you mean tthere
2025-03-01 11:49:22 +0100 <lambdabot> True
2025-03-01 11:49:20 +0100 <tomsmeding> > Data.Maybe.isJust (Just 42)
2025-03-01 11:49:14 +0100 <tomsmeding> euouae: imagine what would happen if you would try to use such a module qualified
2025-03-01 11:48:35 +0100 <euouae> Okay, thank you. I'm actually thinking I'll just keep it all in one flat file
2025-03-01 11:48:22 +0100 <tomsmeding> yes
2025-03-01 11:48:19 +0100 <euouae> Perhaps I can do something like E123.hs for exercise 123?
2025-03-01 11:47:58 +0100 <tomsmeding> and module names must start with a capital letter
2025-03-01 11:47:53 +0100 <tomsmeding> in a cabal project, a module file must always have the module name as its file name
2025-03-01 11:47:39 +0100 <tomsmeding> but as a single file, HLS is okay with it for me
2025-03-01 11:47:36 +0100 <euouae> oh yeah, I use cabal
2025-03-01 11:47:27 +0100 <tomsmeding> it's not a valid file name in a cabal project
2025-03-01 11:47:26 +0100 <euouae> anyway right now I just have all the solutions in one file separated by -- *
2025-03-01 11:47:21 +0100 <tomsmeding> works perfectly fine for me
2025-03-01 11:47:03 +0100 <euouae> I'm doing some leetcode challenges but 123.hs is bad I think
2025-03-01 11:46:57 +0100 <tomsmeding> we were getting so close!
2025-03-01 11:46:37 +0100 <euouae> tomsmeding: oh sorry, I mean file *names*
2025-03-01 11:43:42 +0100 <tomsmeding> it's as close as you're going to get to "including" a "number", really
2025-03-01 11:43:22 +0100 <tomsmeding> mauke: on second thoughts I'm starting to like your last suggestion
2025-03-01 11:41:23 +0100 <tomsmeding> that's about as reasonable an interpretation as claiming that they're used to macOS and actually meant a spreadsheet
2025-03-01 11:40:37 +0100 <mauke> #include "/dev/fd/0"
2025-03-01 11:40:31 +0100 <mauke> oh, I just thought of another way to "include numbers in my source files"
2025-03-01 11:39:35 +0100 <tomsmeding> somewhat, but I'm still uncomfortable
2025-03-01 11:39:03 +0100 <mauke> just be glad that I didn't jump into the type signature!
2025-03-01 11:38:38 +0100 <tomsmeding> what would that even _mean_
2025-03-01 11:38:22 +0100 <mauke> 40 goto 20
2025-03-01 11:38:17 +0100 <mauke> 30 putStrLn "hello"
2025-03-01 11:38:09 +0100 <mauke> 20 main = do
2025-03-01 11:38:05 +0100 <mauke> 10 main :: IO ()
2025-03-01 11:37:37 +0100alfiee(~alfiee@user/alfiee) (Ping timeout: 248 seconds)
2025-03-01 11:36:13 +0100 <tomsmeding> euouae: the tension is killing, enlighten us
2025-03-01 11:35:44 +0100 <sprout> line numbers I assume
2025-03-01 11:35:42 +0100 <tomsmeding> it would be hilarious if someone actually made an implementation of HASIC
2025-03-01 11:35:40 +0100CryptLab(NSA@gateway/vpn/protonvpn/commanderbond007) (Ping timeout: 244 seconds)
2025-03-01 11:35:08 +0100 <Leary> I fear they're trying to write HASIC.
2025-03-01 11:33:08 +0100alfiee(~alfiee@user/alfiee) alfiee
2025-03-01 11:28:56 +0100 <tomsmeding> the neither my editor, nor the LSP, nor HLS breaks on numbers
2025-03-01 11:28:37 +0100 <tomsmeding> [exa]: I can tell you that I am successfully using numbers in my haskell code