Problems with installing type-level package

Hi, cafe, I have a stange thing when trying to install type-level package: $ sudo ./Setup.hs configure Configuring type-level-0.2.4... $ sudo ./Setup.hs build Preprocessing library type-level-0.2.4... Building type-level-0.2.4... [1 of 8] Compiling Data.TypeLevel.Num.Reps ( src/Data/TypeLevel/Num/Reps.hs, dist/build/Data/TypeLevel/Num/Reps.o ) [2 of 8] Compiling Data.TypeLevel.Num.Sets ( src/Data/TypeLevel/Num/Sets.hs, dist/build/Data/TypeLevel/Num/Sets.o ) [3 of 8] Compiling Data.TypeLevel.Num.Aliases.TH ( src/Data/TypeLevel/Num/Aliases/TH.hs, dist/build/Data/TypeLevel/Num/Aliases/TH.o ) [4 of 8] Compiling Data.TypeLevel.Num.Aliases ( src/Data/TypeLevel/Num/Aliases.hs, dist/build/Data/TypeLevel/Num/Aliases.o ) Loading package ghc-prim ... linking ... done. Loading package integer ... linking ... done. Loading package base ... linking ... done. Loading package syb ... linking ... done. Loading package array-0.2.0.0 ... linking ... done. Loading package containers-0.2.0.1 ... linking ... done. Loading package pretty-1.0.1.0 ... linking ... done. Loading package template-haskell ... linking ... done. Generating and compiling a zillion numerical type aliases, this might take a while $ sudo ./Setup.hs haddock Running Haddock for type-level-0.2.4... Preprocessing library type-level-0.2.4... Warning: The documentation for the following packages are not installed. No links will be generated to these packages: rts-1.0, template-haskell-2.4.0.0 Generating and compiling a zillion numerical type aliases, this might take a while $ sudo ./Setup.hs install Installing library in /usr/local/lib/type-level-0.2.4/ghc-6.10.4 Setup.hs: Error: Could not find module: Data.TypeLevel with any suffix: ["hi"] in the search path: ["dist/build"] I have ghc-6.10.4 (that's what is mentioned in "tested-with" in type-level.cabal file) and cabal-1.8.0.2. Has anyone had some similar problems?

On Sunday 19 September 2010 09:58:02, Николай Кудасов wrote:
$ sudo ./Setup.hs haddock Running Haddock for type-level-0.2.4... Preprocessing library type-level-0.2.4... Warning: The documentation for the following packages are not installed. No links will be generated to these packages: rts-1.0, template-haskell-2.4.0.0 Generating and compiling a zillion numerical type aliases, this might take a while $ sudo ./Setup.hs install Installing library in /usr/local/lib/type-level-0.2.4/ghc-6.10.4 Setup.hs: Error: Could not find module: Data.TypeLevel with any suffix: ["hi"] in the search path: ["dist/build"]
I have ghc-6.10.4 (that's what is mentioned in "tested-with" in type-level.cabal file) and cabal-1.8.0.2. Has anyone had some similar problems?
I think the cause is haddock invoking TH again, which destroys your previously built .hi and .o files for the pertinent modules. Try running ./Setup haddock before ./Setup build.

The same thing happens without using haddock at all. .hi and .o files are created only for Data.TypeLevel.Num.Reps, Data.TypeLevel.Num.Sets and Data.TypeLevel.Num.Aliases.TH modules. I have no idea for wich reason other modules are ignored. They are in exposed-modules like those three. Maybe TH deals with some magic?

2010/9/19 Николай Кудасов
Hi, cafe, I have a stange thing when trying to install type-level package:
$ sudo ./Setup.hs configure Configuring type-level-0.2.4... $ sudo ./Setup.hs build Preprocessing library type-level-0.2.4... Building type-level-0.2.4... [1 of 8] Compiling Data.TypeLevel.Num.Reps ( src/Data/TypeLevel/Num/Reps.hs, dist/build/Data/TypeLevel/Num/Reps.o ) [2 of 8] Compiling Data.TypeLevel.Num.Sets ( src/Data/TypeLevel/Num/Sets.hs, dist/build/Data/TypeLevel/Num/Sets.o ) [3 of 8] Compiling Data.TypeLevel.Num.Aliases.TH ( src/Data/TypeLevel/Num/Aliases/TH.hs, dist/build/Data/TypeLevel/Num/Aliases/TH.o ) [4 of 8] Compiling Data.TypeLevel.Num.Aliases ( src/Data/TypeLevel/Num/Aliases.hs, dist/build/Data/TypeLevel/Num/Aliases.o ) Loading package ghc-prim ... linking ... done. Loading package integer ... linking ... done. Loading package base ... linking ... done. Loading package syb ... linking ... done. Loading package array-0.2.0.0 ... linking ... done. Loading package containers-0.2.0.1 ... linking ... done. Loading package pretty-1.0.1.0 ... linking ... done. Loading package template-haskell ... linking ... done. Generating and compiling a zillion numerical type aliases, this might take a while $ [...]
It looks like the Setup.hs build step is only compiling 4 of 8 modules? Does this stage appear to exit successfully?

Setup.hs actually compiles 3 modules, because only they could be found in dist/build. As I understand, something fails on Data.TypeLevel.Num.Aliases.TH but does not give any report on that. Can anybody try to install package to test if it is my problem or, probably, bug in package?
participants (3)
-
Ben Millwood
-
Daniel Fischer
-
Николай Кудасов