Re: [Haskell-cafe] building unix package on windows
Those headers simply do not exist under windows. There's a reason it's called 'Unix' :P Perhaps mingw32 or cygwin could help, as those packages make an attempt at emulating (so to speak) the unix environment. On 08/09/2008, at 17:06, "jean-christophe mincke" <[EMAIL PROTECTED] > wrote: Hello, I have installed GHC and cygwin on windows XP and I am trying to build the unix package (required to install HApps) * When I use .../ghc/gcc as c compiler I receive the following error during the configure D:\temp\haskell\unix-2.3.0.0>runhaskell Setup configure --ghc -- prefix=D:\apps\h-lib Configuring unix-2.3.0.0... checking for gcc... gcc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. and config.log says that : ld: crt2.o: No such file: No such file or directory * When I use the gcc in cygwin : /usr/bin/gcc, the configure phase is ok but the build stop on the following error: D:\temp\haskell\unix-2.3.0.0>runhaskell Setup build Preprocessing library unix-2.3.0.0... In file included from System\Posix\DynamicLinker\Module.hsc:57:0: include/HsUnix.h:32:23: sys/times.h: No such file or directory include/HsUnix.h:38:26: sys/resource.h: No such file or directory include/HsUnix.h:41:22: sys/wait.h: No such file or directory include/HsUnix.h:62:21: termios.h: No such file or directory include/HsUnix.h:65:25: sys/utsname.h: No such file or directory include/HsUnix.h:68:17: pwd.h: No such file or directory include/HsUnix.h:71:17: grp.h: No such file or directory include/HsUnix.h:81:17: pty.h: No such file or directory include/HsUnix.h:84:18: utmp.h: No such file or directory include/HsUnix.h:87:19: dlfcn.h: No such file or directory In file included from System\Posix\DynamicLinker\Module.hsc:57:0: include/HsUnix.h: In function `__hsunix_wifexited': include/HsUnix.h:103:0: warning: implicit declaration of function `WIFEXITED' include/HsUnix.h: In function `__hsunix_wexitstatus': include/HsUnix.h:104:0: warning: implicit declaration of function `WEXITSTATUS' include/HsUnix.h: In function `__hsunix_wifsignaled': include/HsUnix.h:105:0: warning: implicit declaration of function `WIFSIGNALED' include/HsUnix.h: In function `__hsunix_wtermsig': include/HsUnix.h:106:0: warning: implicit declaration of function `WTERMSIG' include/HsUnix.h: In function `__hsunix_wifstopped': include/HsUnix.h:107:0: warning: implicit declaration of function `WIFSTOPPED' include/HsUnix.h: In function `__hsunix_wstopsig': include/HsUnix.h:108:0: warning: implicit declaration of function `WSTOPSIG' include/HsUnix.h: In function `__hsunix_rtldDefault': include/HsUnix.h:115:0: error: `RTLD_DEFAULT' undeclared (first use in this function) include/HsUnix.h:115:0: error: (Each undeclared identifier is reported only once include/HsUnix.h:115:0: error: for each function it appears in.) include/HsUnix.h: In function `__hsunix_lstat': include/HsUnix.h:134:0: warning: implicit declaration of function `lstat' include/HsUnix.h: In function `__hsunix_mknod': include/HsUnix.h:140:0: warning: implicit declaration of function `mknod' compiling dist\build\System\Posix\DynamicLinker\Module_hsc_make.c failed command was: d:\apps\ghc\bin\ghc.exe -c -package base-3.0.2.0 - package directory-1.0.0.1 -Iinclude dist\build\System\Pos ix\DynamicLinker\Module_hsc_make.c -o dist\build\System\Posix \DynamicLinker\Module_hsc_make.o Could someone help me. Thank you J-C ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Compiler's bane
2008/9/1 Andrew Coppin <[EMAIL PROTECTED]>: > Ryan Ingram wrote: >> >> What are you trying to get from the "let" binding? Sharing? >> > > Convinience. > > let x = foo in bar > > is so much easier to write than > > (\x -> bar) foo > > when foo and/or bar is large. > > Trouble is, as soon as you allow let-bindings, some clever person is going > to start writing recursive ones. And actually, that's a useful thing to be > able to do, but it makes figuring out the technical details... rather > nontrivial. (Seriously, I had no idea I was going to get into this much > trouble!) I'm confused -- why is this different to having recursive top-level bindings? Jeremy ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Compiler's bane
2008/8/28 Lennart Augustsson <[EMAIL PROTECTED]>: > You can get rid of all recursive bindings by transforming them into a > use of a fixpoint combinator. > And then you can use a non-recursive definition of the fixpoint > combinator, and never worry about recursive bindings again. This[1] might be a good explanation of why that works. It helped me understand it, at least. [1] - http://mvanier.livejournal.com/2897.html Jeremy ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] GHC ARM Hackathon (Re: Haskell on ARM )
2008/7/3 Greg Fitzgerald <[EMAIL PROTECTED]>: >> Perhaps we should have some sort of GHC on the ARM hackathon >> when 6.10 comes out > > Would anybody be interested in a "GHC on ARM Hackathon" in San Diego this > year? I'd be interested, but I live in Sydney, Australia. San Diego's a bit of a stretch :) > Jeremy Apthorp said: >> it'll also require that I significantly strip down the runtime system, as >> the current RTS won't fit in 4M > > Do you have a plan for how to do this? Maybe we can invite a Simon to teach > us the innards of the RTS and help guide us? I've discussed it briefly with chak (who'll be supervising the project), but as I said, I haven't looked too deeply into the code yet. Jeremy -- - Jem ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: Haskell on ARM (was Re: [Haskell-cafe] ANN: Topkata)
2008/6/30 Jeremy Shaw <[EMAIL PROTECTED]>: > I have successfully run hugs on the Nokia N770. hugs has also been successfully run on the Nintendo DS, as far as I'm aware. However, my aim is to be able to write high-performance applications (say, games) in haskell. An interpreter just isn't fast enough. Maybe I should try working on an inline C module too... Jeremy ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Re: Call Graph Tool?
2008/6/27 Ivan Miljenovic <[EMAIL PROTECTED]>: > C.M.Brown kent.ac.uk> writes: >> I have approx. 100+ source files and I was wondering if anyone has a tool >> that would let me see a visual call graph for the source files; i.e. a >> visual hierarchy of which module is imported by what, and so forth. > > For my maths honours thesis, I'll be writing a tool to help people understand > the relationships in their Haskell code. I'm hoping to have a visualisation > component in there, but that's a relatively low priority. > > Assuming I get it included, is there any features in particular you'd want to > see in there? Note that if I do have it produce visualisations, they'll be > static images as part of an analysis report rather than being interactive. Just today I wished for something similar for this MATLAB code I'm maintaining... would be good to have a pluggable syntax definition so that it could be easily adapted for use with other languages. Jeremy ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Re: Haskell on ARM (was Re: ANN: Topkata)
2008/6/25 Braden Shepherdson <[EMAIL PROTECTED]>: > Jeremy Shaw wrote: >> >> If any does attempt to build for the ARM, please, please, please, >> document what you do in the wiki. And, if you do, edit the wiki as you >> go, you definitely won't be able to remember what you did after the >> fact. (Or, at the very least, use some program to capture everything >> you do so that you can refer to it later). >> >> And, finally, I heard vague rumors a while ago that made me think that >> GHC 6.10 might have a pure ANSI-C backend? Is there any truth to this? >> That would make porting much easier if it meant you did not have to do >> steps 1-4. >> >> j. >> ps. I would be happy to try to answer any questions if someone tries a >> port. I would still like to run GHC on my 770, and I hope to own an >> iPhone if they fix a few ommisions (bluetooth keyboard support, and >> similar stuff). >> > > > I recently acquired the ARM-based Nokia N810 (and <3 it), powered by Maemo. > Running a uname -a on it: > > Linux Nokia-N810-42-19 2.6.21-omap1 #2 Fri Nov 16 16:24:58 EET 2007 armv6l > unknown > > I would love a working GHC implementation on it, if for nothing else than > how awesome it would be. Whether that means using a C back-end or native > compilation doesn't matter to me so much. > > I might be one to attempt this, as I know C and ARM-ish asm decently well > and have a powerful desktop to compile on. I have no familiarity > with GHC internals, though. Lastly, I won't have anything like the time to > attempt this seriously until mid-September or so. Oops, forgot to Cc the list. Next year I'll be working on a project for my undergraduate computing course at UNSW that will involve getting GHC to target the Nintendo DS. It'll require cross-compilation, because the DS isn't powerful enough to actually run GHC (4M main ram and a 66MHz processor). It'll also require that I significantly strip down the runtime system, as the current RTS won't fit in 4M and leave any left over for the main application. I'll be documenting the whole process, but I won't be starting until next year... Jeremy ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Function Precedence
On 01/04/2008, PR Stanley <[EMAIL PROTECTED]> wrote: > Hi > If > f x = x > and > g y = y > then > f g x > returns an error because f takes only one argument. Why can't we have > function application implemented outwardly (inside-out). So > f g x would be applied with > gx first followed by its return value passed to f instead of putting > g x in brackets. Think about this: map (+1) [1..10] What should it do? How about: f 1 2 3 Should that be f (1 (2 3)), or ((f 1) 2) 3? Jeremy ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] "GADT" rhymes with "cat"
On 16/03/2008, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Quoting Ashley Yakeley <[EMAIL PROTECTED]>: > > > "GADT" rhymes with "cat". The "d" is silent, like the Danish "godt", or > > the German "Stadt", or the American trademark "Bundt". > > > I pronounce it so that it rhymes with "ADT". > Clearly, this pronounciation is "gay dee tea." I always new those types were a bit queer. Jeremy ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] anybody can tell me the pronuncation of "haskell"?
On 30/01/2008, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > PS. If you think that "arigato" is a genuine Japanese word, well, check > how the appropriately translated word is spelled in Portuguese... Another Japanese word adopted from Portuguese is their word for "bread": "pan". Jeremy ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] anybody can tell me the pronuncation of "haskell"?
On 29/01/2008, Tim Chevalier <[EMAIL PROTECTED]> wrote: > On 1/28/08, Jeremy Apthorp <[EMAIL PROTECTED]> wrote: > > On 29/01/2008, Tim Chevalier <[EMAIL PROTECTED]> wrote: > > > "Haskell", stress on the first syllable; the first syllable is like > > > the word "has" and the second syllable is pronounced with a schwa > > > where the "e" is written. > > > > > > Sometimes you will hear people stress the second syllable, but that is > > > not Preferred. > > > > > > > "Hass" (like in "hassle") "kell" (to rhyme with "fell") > > > > That is not correct. The second syllable does not rhyme with "fell". > In fact, the correct pronunciation sounds like "hassle" with a 'k' > inserted between the two syllables of that word. > > (And when I say it's not correct, I'm comparing to the speech of a few > People Who Should Know.) > The two are pretty similar, but I notice now that when I say it it's more like you describe than like I describe. I blame sleep deprivation :) Jeremy -- - Jem ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] anybody can tell me the pronuncation of "haskell"?
On 29/01/2008, Tim Chevalier <[EMAIL PROTECTED]> wrote: > "Haskell", stress on the first syllable; the first syllable is like > the word "has" and the second syllable is pronounced with a schwa > where the "e" is written. > > Sometimes you will hear people stress the second syllable, but that is > not Preferred. > "Hass" (like in "hassle") "kell" (to rhyme with "fell") Jeremy ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Haskell-Support in Ohloh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 20/01/2008, Reinier Lamers wrote: > > Op 17-jan-2008, om 1:21 heeft Joachim Breitner het volgende geschreven: > > > > They explicitly write that they want haskell support, and the oldest > > open bug report on their page is about this: > > > > http://labs.ohloh.net/ohcount/ticket/205 > > > > So if anyone feels like programming some ruby (I guess they want it to > > be in that language as well) and wants to give the haskell community a > > chance for wider audience, give it a shot. > I used this rainy saturday to make a patch. It only took three lines > of Ruby or so, and some more work getting ohcount to build on my > machine and to make some unit tests. I submitted the patch to their > trac, http://labs.ohloh.net/ohcount/ticket/205 . Is it just me or does that patch not actually include the line counting code..? Jeremy -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHkixQ5plcd8tF/AQRAqQeAJ420viuL4fdi3EqvtRZkbTSoJsmQQCgkYqG oofypoHigdBzSNtM2xB1nw0= =3tv8 -END PGP SIGNATURE- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Functions are first class values in C
On 23/12/2007, Peter Verswyvelen <[EMAIL PROTECTED]> wrote: > Cristian Baboi wrote > > Lazy constant in C: > > int C1 (){ return 7; } > > Not really, this is not lazy, since it always recomputes the value "7". Actually GCC will happily optimise this away in almost all cases. -- - Jeremy Apthorp ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe