Newest at the top
2025-02-23 02:54:28 +0100 | cici | (~user@140.177.185.33) (Ping timeout: 252 seconds) |
2025-02-23 02:52:34 +0100 | merijn | (~merijn@host-vr.cgnat-g.v4.dfn.nl) merijn |
2025-02-23 02:51:46 +0100 | krei-se | (~krei-se@p200300f1cf07fb002411defffe902013.dip0.t-ipconnect.de) (Ping timeout: 244 seconds) |
2025-02-23 02:49:31 +0100 | <cici> | That makes sense, thanks! |
2025-02-23 02:49:03 +0100 | <geekosaur> | ghc compiles but doesn't run, like gcc/clang and javac. runghc runs but doesn't compile, like python and js. once you compile a program, you can run it multiple times without compiling again unless you want to change the source code |
2025-02-23 02:45:09 +0100 | <cici> | Ah, got. I am coming from a little bit of a lisp background, so that makes sense. sbcl = ghci |
2025-02-23 02:44:43 +0100 | <EvanR> | yes |
2025-02-23 02:44:40 +0100 | <cici> | is ghci the repl? |
2025-02-23 02:44:34 +0100 | <EvanR> | interpreter |
2025-02-23 02:44:31 +0100 | <EvanR> | interactive haskell interpreted |
2025-02-23 02:44:26 +0100 | <EvanR> | also check out ghci |
2025-02-23 02:44:24 +0100 | alfiee | (~alfiee@user/alfiee) (Ping timeout: 276 seconds) |
2025-02-23 02:44:21 +0100 | <cici> | Thank you all! Now I just need to get haskell to interop with emacs, haha |
2025-02-23 02:44:13 +0100 | JuanDaugherty | (~juan@user/JuanDaugherty) (Exeunt DS Producers) |
2025-02-23 02:44:04 +0100 | <cici> | and, as always, you have to specify path for executable |
2025-02-23 02:44:02 +0100 | <EvanR> | glasgow haskell compiler |
2025-02-23 02:43:53 +0100 | <cici> | need to run "runghc" to see output |
2025-02-23 02:43:43 +0100 | <cici> | So, today I learned: ghc just compiles. |
2025-02-23 02:43:28 +0100 | <cici> | I get it now. |
2025-02-23 02:43:22 +0100 | <cici> | oh, yeah, I forgot my ./ |
2025-02-23 02:43:06 +0100 | <cici> | I'll try that, one sec |
2025-02-23 02:42:57 +0100 | <cici> | that ending colon should be a quotation mark |
2025-02-23 02:42:56 +0100 | <lambdabot> | <hint>:1:1: error: parse error on input ‘./’ |
2025-02-23 02:42:54 +0100 | <EvanR> | > ./myprogram |
2025-02-23 02:42:44 +0100 | <EvanR> | e.g. if the file is called myprogram |
2025-02-23 02:42:44 +0100 | <cici> | I see. When I use it from the command line, it says "command not found: |
2025-02-23 02:42:19 +0100 | <EvanR> | instead you have to run it from command line |
2025-02-23 02:42:11 +0100 | <EvanR> | because it's not a graphical program clicking probably doesn't show anything |
2025-02-23 02:41:49 +0100 | <cici> | I think it did: it produced two files, one with a .hi extension and another with an .o extension. And there is an executable, but it doesn't nothing when I click on it |
2025-02-23 02:41:38 +0100 | merijn | (~merijn@host-vr.cgnat-g.v4.dfn.nl) (Ping timeout: 252 seconds) |
2025-02-23 02:41:12 +0100 | <EvanR> | but that will work |
2025-02-23 02:41:03 +0100 | <EvanR> | you don't have to |
2025-02-23 02:40:50 +0100 | <EvanR> | run that |
2025-02-23 02:40:50 +0100 | <cici> | Oh, I just figuring it out with a little more searching: a better webpage explained you have to put runghc to see the output |
2025-02-23 02:40:49 +0100 | xearty | (~xearty@151.251.255.19) |
2025-02-23 02:40:40 +0100 | <EvanR> | ghc haskell-hello.hs should produce an executable file somewhere |
2025-02-23 02:40:05 +0100 | <EvanR> | doesn't run your program |
2025-02-23 02:39:58 +0100 | <EvanR> | ghc is the compiler |
2025-02-23 02:39:48 +0100 | atwm | (~andrew@19-193-28-81.ftth.cust.kwaoo.net) (Ping timeout: 252 seconds) |
2025-02-23 02:39:47 +0100 | <cici> | How do I get it to print the string in the command line? The website makes it seem like that's the expected result. Sorry if I misinterpreted it, though |
2025-02-23 02:39:25 +0100 | <EvanR> | it only creates a new program file |
2025-02-23 02:39:21 +0100 | alfiee | (~alfiee@user/alfiee) alfiee |
2025-02-23 02:39:10 +0100 | <EvanR> | also, when you compile a program, you are returned to the shell. It doesn't just run your program |
2025-02-23 02:39:09 +0100 | <cici> | and this is the command I'm putting in my terminal: ghc haskell-hello.hs |
2025-02-23 02:38:47 +0100 | <cici> | just this single line: main = putStrLn "Hello, Haskell!" |
2025-02-23 02:37:46 +0100 | <EvanR> | what does your code look like again |
2025-02-23 02:37:38 +0100 | <EvanR> | sorry |
2025-02-23 02:36:48 +0100 | merijn | (~merijn@host-vr.cgnat-g.v4.dfn.nl) merijn |
2025-02-23 02:35:38 +0100 | <cici> | When I compile the code, It doesn't print the "hello, haskell!" string. It just goes onto a new blank prompt. For more info, I'm using Fedora 41 |
2025-02-23 02:35:04 +0100 | <cici> | hello, I am having an issue getting my basic hello world program to compile. I made a file with a .hs extension exactly as its described in this webpage: https://piembsystech.com/installing-haskell-on-different-platforms/ |