Enrico Tröger wrote:
On Sun, 20 Apr 2008 00:16:16 +1200, Andy Elvey andy.elvey@paradise.net.nz wrote:
Enrico Tröger wrote:
Hi all,
Geany 0.14 is available!
[...]
Great! Thanks very much, Enrico (and all others who've contributed... :) )
You should thank Nick at least in the same way as me...he did most of work ;-). And of course, the contributors.
I'm getting into some simple Haskell coding at the moment. I'm using GHC 6.8.2 (the most recent release, I believe). That seems to have two ways of running Haskell code, as follows (say I have a program called prog.hs ) $ runhaskell prog.hs Or.... $ ghc --make prog.hs ( You then execute the binary with "./prog" )
"ghc --make prog.hs" should work, this is the default compile command in Geany for Haskell files.
Geany lists the make program as /usr/bin/make (which is ok, that's standard). What I'm wondering is - how should I change that to run my Haskell code in Geany?
You don't need to change the make command, it's completely independent from the problem.
( I should mention that when I open my Haskell program, both the "compile" and "execute" buttons are greyed out. )
This is the real problem. Start Geany on a console with the command line option "-d" to enable some debug messages and check whether Geany complains about a file filetypes.haskell which can't be opened.
( p.s. - If (on replying to this) you don't get an immediate reply back from me, it'll be because I'm popping off to bed any minute now
- it's not because I'm ungrateful...;) It's getting late here... ;) )
Good night ;-). Or better good morning when you read this...
Regards, Enrico
Good morning Enrico! Thanks for that, that's very helpful -
I've started Geany from the console (as suggested) and this is the output I get -
*** Start of output *** $ geany -d ** INFO: Geany 0.14, GTK+ 2.12.1, GLib 2.14.2
(geany:1163): Vte-WARNING **: Error setting PTY size: Resource temporarily unavailable.
(geany:1163): Vte-WARNING **: Error reading PTY size, using defaults: Resource temporarily unavailable. ** INFO: /home/andy/haskell/grades2.hs : Haskell (UTF-8) ** INFO: Failed to open /usr/local/share/geany//filetypes.haskell (No such file or directory) regex: regcomp <h1>[ ]*(.*+)[ ]*</h1>: repetition-operator operand invalid regex: regcomp <h2>[ ]*(.*+)[ ]*</h2>: repetition-operator operand invalid regex: regcomp <h3>[ ]*(.*+)[ ]*</h3>: repetition-operator operand invalid
(geany:1163): Vte-WARNING **: Error reading PTY size, using defaults: Resource temporarily unavailable.
(geany:1163): Vte-WARNING **: Error setting PTY size: Resource temporarily unavailable.
(geany:1163): Vte-WARNING **: Error reading PTY size, using defaults: Resource temporarily unavailable.
(geany:1163): Vte-WARNING **: Error reading PTY size, using defaults: Resource temporarily unavailable. *** End of output ***
Just a note - there is a double-slash just before "filetypes.haskell" above - I wonder if that should be a single-slash?
Anyway, I went into /usr/local/share/gean and there wasn't a filetypes.haskell file there. So, that might be the problem. Thanks again - bye for now - - Andy