Re: [Haskell-cafe] [OT] Install ghc6-doc fails [SOLVED}

2007-07-21 Thread J. Pablo Fernández
It seems the problem was that those haddock files where generated by a 
previous version of haddock, ocmpiled with a previous version of ghc6. Now 
that I had a current ghc6, and a current haddock compiled with the current 
ghc6, I recompiled ghc6 and that worked :)

On Sunday 22 July 2007 01:44:16 J. Pablo Fernández wrote:
> Hello,
>
> This may be a bit off topic, but maybe someone here has importante related
> information. I am running Kubuntu, the lattests stable version, but I am
> running unstable Haskell packages, that is, I fetch the dsc, diff and
> tarballs and build the debs myself of what will come in the next version of
> Kubuntu. So I have the advantage of running recent versions, and at the
> same time, keeping packages (which come usefull when I want to remove
> everything, or when mainstream software is too weird).
> But, installing the ghc6-doc packages gives me this error:
>
> (Reading database ... 156024 files and directories currently installed.)
> Preparing to replace ghc6-doc 6.6.1-2 (using ghc6-doc_6.6.1-2_all.deb) ...
> Unpacking replacement ghc6-doc ...
> Setting up ghc6-doc (6.6.1-2) ...
> haddock: Warning: The interface file "base/base.haddock" could not be read.
> Maybe it's from a later version of Haddock?
> haddock: Warning: The interface file "Cabal/Cabal.haddock" could not be
> read. Maybe it's from a later version of Haddock?
> haddock: Warning: The interface file "filepath/filepath.haddock" could not
> be read.
> Maybe it's from a later version of Haddock?
> haddock: Warning: The interface file "parsec/parsec.haddock" could not be
> read.
> Maybe it's from a later version of Haddock?
> haddock: Warning: The interface file "readline/readline.haddock" could not
> be read.
> Maybe it's from a later version of Haddock?
> haddock: Warning: The interface file "regex-base/regex-base.haddock" could
> not be read.
> Maybe it's from a later version of Haddock?
> haddock: Warning: The interface file "regex-compat/regex-compat.haddock"
> could not be read.
> Maybe it's from a later version of Haddock?
> haddock: Warning: The interface file "regex-posix/regex-posix.haddock"
> could not be read.
> Maybe it's from a later version of Haddock?
> haddock: Data.Binary.getWord8: end of file
>
> dpkg: error processing ghc6-doc (--install):
>  subprocess post-installation script returned error exit status 1
> Errors were encountered while processing:
>  ghc6-doc
>
>
> I am running the lattest haddock (0.8), so the problem might be something
> else. Any ideas what the problem might be?
>
> Thank you.



-- 
J. Pablo Fernández <[EMAIL PROTECTED]> (http://pupeno.com)
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] External Sort and unsafeInterleaveIO

2007-07-21 Thread Stefan O'Rear
On Tue, Jul 17, 2007 at 04:16:29AM -0500, Ben wrote:
> hi folks --
>
> a haskell newbie here, searching for comments and wisdom on my code.
>
> i had a project to try to implement "external sort" in haskell as a
> learning exercise.  (external sort is sorting a list that is too large
> to fit in main memory, by sorting in chunks, spooling to disk, and
> then merging.  more properly there probably should be multiple stages,
> but for simplicity i'm doing a one-stage external sort.)

If you have practical (as opposed to pedagogical) reasons for this, you
should try using 'sort' from GNU coreutils (standard sort on linuxen,
shouldn't be terribly hard to make work on other systems if you know C).
The inner loop is coded with pretty bad constant factors, but it *is* an
external sort, and has happily sorted 20GB files on my (300MB core)
system; only taking an hour.

Stefan


signature.asc
Description: Digital signature
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Haskell & monads for newbies

2007-07-21 Thread Stefan O'Rear
On Sun, Jul 15, 2007 at 07:23:37PM +0100, Andrew Coppin wrote:
> As for "robust"... it tiles windows. What could possibly go wrong?

I'm told that early versions of DWM had a habit of segfaulting if you
looked at them wrong.  Just usual C stuff.  Which in a normal setup,
will cause the rest of your login session to die with broken pipes and
whatnot...

Stefan


signature.asc
Description: Digital signature
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] [OT] Install ghc6-doc fails

2007-07-21 Thread J. Pablo Fernández
Hello,

This may be a bit off topic, but maybe someone here has importante related 
information. I am running Kubuntu, the lattests stable version, but I am 
running unstable Haskell packages, that is, I fetch the dsc, diff and 
tarballs and build the debs myself of what will come in the next version of 
Kubuntu. So I have the advantage of running recent versions, and at the same 
time, keeping packages (which come usefull when I want to remove everything, 
or when mainstream software is too weird).
But, installing the ghc6-doc packages gives me this error:

(Reading database ... 156024 files and directories currently installed.)
Preparing to replace ghc6-doc 6.6.1-2 (using ghc6-doc_6.6.1-2_all.deb) ...
Unpacking replacement ghc6-doc ...
Setting up ghc6-doc (6.6.1-2) ...
haddock: Warning: The interface file "base/base.haddock" could not be read.
Maybe it's from a later version of Haddock?
haddock: Warning: The interface file "Cabal/Cabal.haddock" could not be read.
Maybe it's from a later version of Haddock?
haddock: Warning: The interface file "filepath/filepath.haddock" could not be 
read.
Maybe it's from a later version of Haddock?
haddock: Warning: The interface file "parsec/parsec.haddock" could not be 
read.
Maybe it's from a later version of Haddock?
haddock: Warning: The interface file "readline/readline.haddock" could not be 
read.
Maybe it's from a later version of Haddock?
haddock: Warning: The interface file "regex-base/regex-base.haddock" could not 
be read.
Maybe it's from a later version of Haddock?
haddock: Warning: The interface file "regex-compat/regex-compat.haddock" could 
not be read.
Maybe it's from a later version of Haddock?
haddock: Warning: The interface file "regex-posix/regex-posix.haddock" could 
not be read.
Maybe it's from a later version of Haddock?
haddock: Data.Binary.getWord8: end of file

dpkg: error processing ghc6-doc (--install):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 ghc6-doc


I am running the lattest haddock (0.8), so the problem might be something 
else. Any ideas what the problem might be?

Thank you.
-- 
J. Pablo Fernández <[EMAIL PROTECTED]> (http://pupeno.com)
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] how can I call GHC.init and GHC.initPackages?

2007-07-21 Thread Vadim
Hi all,

The following lines of code:

import GHC

main :: [PackageIdentifier] -> IO ()
main pkgs
= GHC.defaultErrorHandler defaultDynFlags $
  do GHC.init (Just GHC_LIBDIR)
 interactive pkgs


seemingly worked in GHC 6.6 but they do not work in 6.6.1 anymore with
error message:

[1 of 1] Compiling Hide.Hide( src/Hide/Hide.hs,
dist/build/Hide/Hide.o )

src/Hide/Hide.hs:34:9: Not in scope: `GHC.init'

src/Hide/Hide.hs:44:18: Not in scope: `GHC.initPackages'

setup build failed for packages/baseApp

Thanks for any help on the subject.
Vadim.

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] i need wxHaskell compiled for ghc 6.6.1 on Windows

2007-07-21 Thread Neil Mitchell

Hi Bulat,


can anyone provide wxHaskell already compiled/compilable with ghc 6.6.1 on
Windows?


This is precisely the reason I switched to Gtk2Hs - Duncan provides
Windows installers as each new GHC release comes out. If wxHaskell
wants to stand any chance as an alternative GUI framework there really
_must_ be Windows binaries released concurrently with GHC versions...

Thanks

Neil
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] gui libs? no thanks, i'm just browsing.. ;-)

2007-07-21 Thread Hugh Perkins

I'm not sure if you're talking about C++ ABIs or C ABIs?  If you're already
using a C ABI, and you're getting incompatibilities, well I have nothing
useful to say :-)

If you're talking about C++ ABIs, technically it's possible to use a
Generator to drop-down into a C ABI, pump across the interface at a C level,
function by function, then wrap back into C++ classes.

The advantage is that you decouple the classes on either side of the
interface, so it's possible to add new methods to the classes without
breaking anything.

(Warning: I have no idea to what extent what I just wrote relates to ghc
etc.  I did make a generator to cross a C++ ABI boundary before, to link an
msvc C++ dll with a mingw C++ exe:

http://spring.clan-sy.com/phpbb/viewtopic.php?t=7991
)
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] gui libs? no thanks, i'm just browsing.. ;-)

2007-07-21 Thread Claus Reinke
That is all true.  ABI compatibility would be nice. But I don't see how 
to combine with GHC's other goals.  Notably, we frequently add new 
information to interface files, and it would be a major constraint not to 
be able to do so.


that is the bit i never quite understood: if newer formats just add 
information, that should be no problem. the problem, presumably,

comes when newer ghcs can no longer manage without that extra
information. 

so, if ghc was truly upgraded (add things, improve things) instead 
of modified (add some, take away some), then it should be able to 
work with "old" compiled libs at least as well as its previous version 
would have. just that it could do even better if it was allowed to 
recompile the old lib itself..


what am i missing?
claus

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


RE: [Haskell-cafe] gui libs? no thanks, i'm just browsing.. ;-)

2007-07-21 Thread Simon Peyton-Jones

| abi compatibility would be very nice to have (if the library/binding
| code
| doesn't change, newer ghc major versions should still be able to link
| to
| bindings compiled with older ones). that is only going to become more
| important as fewer libraries are going to be shipped with ghc itself
| now
| (also with dynamically linked libraries).

That is all true.  ABI compatibility would be nice. But I don't see how to 
combine with GHC's other goals.  Notably, we frequently add new information to 
interface files, and it would be a major constraint not to be able to do so.

For the present at any rate, ABI incompatibility between major releases seems 
like the lesser evil.

Simon
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Weird ghci behaviour?

2007-07-21 Thread Marc A. Ziegert
> This is ghc 6.6. Anyone else seeing this?
not here.

what do these output:
ghc --version
and
ghci --version
? are they different?

besides that.. why do you use 6.6? may it bee.. is your "Unix-like OS" sth 
between OSX and linux? (i remenber there exists a Gnu/Darwin package manager 
without the (faster bootstrapping) ghc-6.6.1)

- marc



Am Freitag, 20. Juli 2007 23:12 schrieb Dan Piponi:
> On Unix-like OSes:
> 
> If I run "ghc test.hs" and then run "ghci test.hs", ghci fails to load
> up my code. I have to touch test.hs and then run ghci. I can
> understand ghci refusing to recompile something it thinks it has
> already compiled. But it appears to refuse to load it into an
> interactive session - which is less useful. In fact, removing test.hi
> makes ghci work again.
> 
> This is ghc 6.6. Anyone else seeing this?
> --
> Dan
> ___
> Haskell-Cafe mailing list
> Haskell-Cafe@haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
> 


pgpR8AJXYCKrx.pgp
Description: PGP signature
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe