[email protected]
[Top] [All Lists]

Re: [Haskell-cafe] GHC bug? Cabal bug? Haddock bug?

Subject: Re: [Haskell-cafe] GHC bug? Cabal bug? Haddock bug?
From: Antoine Latter
Date: Sat, 16 Jan 2010 20:08:48 -0600
2010/1/16 Mark Lentczner <[email protected]>:
> Indeed - all those look exactly like the same issue.
>
>> And the workaround:
>> http://groups.google.com/group/happs/msg/1e7761d421b0e5eb
>
> That doesn't fix the real issue: It causes happstack-data to not need the 
> thing that is built wrong in syb-with-class. I believe my work-around (build 
> syb-with-class w/o documentation) will be a more universal workaround, as at 
> that point the syb-with-class install is no longer broken.
>
>> Here's the GHC bug report: http://hackage.haskell.org/trac/ghc/ticket/3799
>
> Registration for that trac is broken, so I couldn't update that ticket. I see 
> that you've added pointers to my post, thank you! Perhaps you can also add a 
> note that the issue seems to have to do with something that cabal does 
> differently when there is a documentation step enabled.
>

Here's the good stuff.

First, I did a "cabal configure && cabal build" for syb-with-class. And then:

>>>>>
antoine-latters-macbook:syb-with-class-0.6.1 alatter$ find  . | grep
\\.o$ | xargs ls -l
-rw-r--r--  1 alatter  staff  121496 Jan 16 20:04
./dist/build/Data/Generics/SYB/WithClass/Basics.o
-rw-r--r--  1 alatter  staff    5888 Jan 16 20:04
./dist/build/Data/Generics/SYB/WithClass/Context.o
-rw-r--r--  1 alatter  staff  157220 Jan 16 20:04
./dist/build/Data/Generics/SYB/WithClass/Derive.o
-rw-r--r--  1 alatter  staff  403216 Jan 16 20:04
./dist/build/Data/Generics/SYB/WithClass/Instances.o
-rw-r--r--  1 alatter  staff  602752 Jan 16 20:04
./dist/build/HSsyb-with-class-0.6.1.o
antoine-latters-macbook:syb-with-class-0.6.1 alatter$ find  . | grep
\\.hi$ | xargs ls -l
-rw-r--r--  1 alatter  staff   33600 Jan 16 20:04
./dist/build/Data/Generics/SYB/WithClass/Basics.hi
-rw-r--r--  1 alatter  staff    2367 Jan 16 20:04
./dist/build/Data/Generics/SYB/WithClass/Context.hi
-rw-r--r--  1 alatter  staff   13960 Jan 16 20:04
./dist/build/Data/Generics/SYB/WithClass/Derive.hi
-rw-r--r--  1 alatter  staff  166039 Jan 16 20:04
./dist/build/Data/Generics/SYB/WithClass/Instances.hi
antoine-latters-macbook:syb-with-class-0.6.1 alatter$ cabal haddock
Running Haddock for syb-with-class-0.6.1...
Preprocessing library syb-with-class-0.6.1...
Warning: The documentation for the following packages are not installed. No
links will be generated to these packages: ffi-1.0, rts-1.0
Documentation created: dist/doc/html/syb-with-class/index.html
antoine-latters-macbook:syb-with-class-0.6.1 alatter$ find  . | grep
\\.o$ | xargs ls -l
-rw-r--r--  1 alatter  staff  121496 Jan 16 20:05
./dist/build/Data/Generics/SYB/WithClass/Basics.o
-rw-r--r--  1 alatter  staff    5896 Jan 16 20:05
./dist/build/Data/Generics/SYB/WithClass/Context.o
-rw-r--r--  1 alatter  staff  157220 Jan 16 20:05
./dist/build/Data/Generics/SYB/WithClass/Derive.o
-rw-r--r--  1 alatter  staff  403216 Jan 16 20:05
./dist/build/Data/Generics/SYB/WithClass/Instances.o
-rw-r--r--  1 alatter  staff  602752 Jan 16 20:04
./dist/build/HSsyb-with-class-0.6.1.o
antoine-latters-macbook:syb-with-class-0.6.1 alatter$ find  . | grep
\\.hi$ | xargs ls -l
-rw-r--r--  1 alatter  staff   33600 Jan 16 20:05
./dist/build/Data/Generics/SYB/WithClass/Basics.hi
-rw-r--r--  1 alatter  staff    2367 Jan 16 20:05
./dist/build/Data/Generics/SYB/WithClass/Context.hi
-rw-r--r--  1 alatter  staff   13960 Jan 16 20:05
./dist/build/Data/Generics/SYB/WithClass/Derive.hi
-rw-r--r--  1 alatter  staff  166039 Jan 16 20:05
./dist/build/Data/Generics/SYB/WithClass/Instances.hi
<<<<<

Note that after running "cabal haddock" we re-build all of our .hi and
.o files EXCEPT ./dist/build/HSsyb-with-class-0.6.1.o

And now, since TH generates random symbols, we have symbols in the new
.hi files that aren't in the old (and only) HSsyb-with-class-0.6.1.o.

Antoine
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

<Prev in Thread] Current Thread [Next in Thread>