Re: [Haskell] Woes on MacOS 10.6 - linking issues
Hello, Concerning the undefined iconv symbols, take a look at http://hackage.haskell.org/trac/ghc/ticket/4068, it seems to be about something similar. Best regards Thorkil On Thu, Jun 10, 2010 at 08:53:13PM -0600, Brett Giles wrote: > Hi Folks > > I seem to have Gtk2HS 0.11 installed, but not quite working. Interestingly, I > can run a demo, such as the hello/World.hs example, directly in ghci. > However, when I try to do a ghc --make on any code containing gtk2hs I get a > link error like this: > > Undefined symbols: > "_iconv_close", referenced from: > _hs_iconv_close in libHSbase-4.2.0.0.a(iconv.o) > (maybe you meant: _hs_iconv_close) > "_iconv", referenced from: > _hs_iconv in libHSbase-4.2.0.0.a(iconv.o) > (maybe you meant: _hs_iconv_open, _hs_iconv , _hs_iconv_close ) > "_iconv_open", referenced from: > _hs_iconv_open in libHSbase-4.2.0.0.a(iconv.o) > (maybe you meant: _hs_iconv_open) > ld: symbol(s) not found > > > I do have libiconv installed as a universal library via macports. gtk, glade > etc., are also universal installed via macports. > > I downloaded the OSX Haskell Platform package and am running ghc 6.12.1 > > Other programs seem to be having some issues as well though, For instance, a > command line program seems to compile fine, but when it runs I get the > message: > > $ emlqpl (<<<--- My "successfully" compiled program - batch only, no gtk > items) > dyld: Library not loaded: /opt/local/lib/libgtk-quartz-2.0.0.dylib > Referenced from: /usr/local/bin/emlqpl > Reason: image not found > Trace/BPT trap > > > > Does anyone have any suggestions? > > Brett Giles > Grad Student, Formal Methods, Category Theory, > University of Calgary > brett.gi...@ucalgary.ca > > > > ___ > Haskell mailing list > Haskell@haskell.org > http://www.haskell.org/mailman/listinfo/haskell ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell
[Haskell] ANNOUNCE: hpc-strobe-0.1: Hpc-generated strobes for a running Haskell program
I am pleased to announce the initial release of hpc-strobe: Hpc-generated strobes for a running Haskell program. hpc-strobe is a rudimentary library that demonstrates the possibility of using Hpc (Haskell Program Coverage) to inspect the state of a running Haskell program. hpc-strobe-0.1 has been uploaded to hackage: http://hackage.haskell.org/packages/archive/hpc-strobe/0.1/hpc-strobe-0.1.tar.gz In ordinary use of Hpc, a single so-called tix file is produced at the end of a run. The tix file records how many times each expression has been used during the run. This can be used to mark up the source code, identifying expressions that have not been used. hpc-strobe uses the basic machinery provided by Hpc to produce multiple tix files, also called strobes, representing the coverage at different times while the program is running. By subtracting such two tix files, again using Hpc machinery, a tix file representing the expressions used between the times of recording the subtracted tix files is produced. This may be used, for example, to get a better idea of what a long-running program is doing. It could also be used as a profiling tool, getting information about how many times individual expressions are used. A program is included whose strobe differences produce a crude rendering of an analog clock when they are used to mark up the source code using Hpc. Please see the attached example (gunzip the file, point you browser to it, scroll down to view the canvas function). Use of the library involves a simple change of the main function and also requires the program to be enabled for hpc. At the time of writing, this means using a fairly recent version of GHC and compiling the Haskell code with the -fhpc option. For additional details, see the README included in the package. Best regards Thorkil Main.hs.html.gz Description: GNU Zip compressed data ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell
Re: [Haskell] Help : data & concurrent packages
Hello, On Tuesday 13 January 2009 18:26, bft wrote: > Hi ! > Can someone tell me where to download the *data* and *concurrent *packages. I recall data and concurrent packages from some years back, but I would assume that they are merged into the base package nowadays where GHC-6.10.1 is the latest release of GHC. I suggest that you just remove these package dependencies (in case they happen to bother, somehow) and, if any name turns out to be undefined, try http://haskell.org/hoogle/ to search for it. Packages are usually located via http://hackage.haskell.org/packages/hackage.html . > ... Best regards Thorkil ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell
Re: [Haskell] Ancient, but still having fun
Young Man, On Saturday 19 January 2008 00:07, Simon Peyton-Jones wrote: > Friends, > > It's Friday 18 January 2008, which makes it my 50th birthday. Congratulations! > ... > Ancient or not, I'm still having a terrific time in this community. When I first became addicted to functional programming, as a result of Arthur Norman's 4-lecture course, and David Turner's SK-combinator papers, I never dreamt of what a wild and fascinating ride it would turn out to be. > > Thank you all! > > Simon > ... Rest assured that there are many of us having a terrific time too. And not least because of your in many ways fabulous presence. Thank you Simon. Best regards Thorkil ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell
Re: [Haskell] Generator Function for Prime Numbers
Hello, On Tuesday 13 March 2007 00:40, Jacques Carette wrote: > And yet Taral would be wrong and Dave Feustel correct: > http://mathworld.wolfram.com/Prime-GeneratingPolynomial.html > I wouldn't say that a polynomium applies as "using only addition and subtraction". > There is a polynomial (of degree 25) in 26 variables which generates > only primes whenever it is positive. Surprising, yes it is. Note that > this polynomial is actually rarely positive! > Yes, and as noted in the Prime-GeneratingPolynomial reference, it is really a set of diophantine equations (equations where only integer/natural/rational solutions qualify) in disguise. In fact, if I remember correctly, one of the variables that you have to stick into the polynomium is one less (or some such) than the prime that you get out. So as a prime generating device, it is rather useless. The idea of defining sets of numbers by diophantine equations was used in 1970, to prove one of the 10th of Hilberts famous 23 problems from 1900 impossible. See http://en.wikipedia.org/wiki/Matiyasevich's_theorem > Jacques > > Taral wrote: > > Not bloody likely. > > > > On 3/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >> I have heard that a generator function has been found that generates > >> prime numbers directly using only addition and subtraction. There > >> purportedly have been presentations of this information to selected > >> mathematicians who have verified that the generator function works. > >> But I haven't found any confirmation by googling. Has anyone got > >> wind of this? > >> > >> Thanks, > >> Dave Feustel > >> ___ > >> Haskell mailing list > >> Haskell@haskell.org > >> http://www.haskell.org/mailman/listinfo/haskell > >> > > > > > ___ > Haskell mailing list > Haskell@haskell.org > http://www.haskell.org/mailman/listinfo/haskell > Best regards Thorkil ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell
Re: [Haskell] Checking out the whole source tree
Hello, On Tuesday 13 February 2007 08:09, Donald Bruce Stewart wrote: > hoelz: > > I recently checked out the X11 package from darcs.haskell.org, and I'd > > like to check out more of the source from the darcs repository. I'm > > still unfamiliar with darcs; how do I check out the whole source tree? > > > > Thanks, > > Rob Hoelz > ... for GHC and a base set of libraries, you can get > that source directly by following these instructions: > > http://hackage.haskell.org/trac/ghc/wiki/Building/GettingTheSources > > Other libraries and tools can be picked up as needed. You'll find > links to these things on hackage, http://hackage.haskell.org/packages/archive/pkg-list.html > and on haskell.org's libraries page. > > -- Don > ... For Hugs, follow the instructions here: http://hackage.haskell.org/trac/hugs/wiki/GettingTheSource You will need cvs instead of darcs, however. For Yhc, follow: http://haskell.org/haskellwiki/Yhc/Building In each case, various tool are needed in case you wish to build the respective tool, but they are mentioned in the instructions and at least I have managed to fumble my way through. There are additional Haskell implementations mentioned on http://haskell.org/haskellwiki/Implementations Best regards Thorkil ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell