andrep / hoc

Automatically exported from code.google.com/p/hoc
8 stars 1 forks source link

Can't install hoc. #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install ghc 6.12.1
2. Install packages those are depended from hoc (HUnit, fgl, mtl, parsec)
3. try "runhaskell Setup configure"

What is the expected output? 

What do you see instead?
I saw error messages below:
Setup.hs:18:19:
    Couldn't match expected type `GenericPackageDescription'
           against inferred type `Either
                                    GenericPackageDescription PackageDescription'
      Expected type: (GenericPackageDescription, HookedBuildInfo)
      Inferred type: (Either
                        GenericPackageDescription PackageDescription,
                      HookedBuildInfo)
    In the `confHook' field of a record
    In the second argument of `($)', namely
        `defaultUserHooks
           {confHook = customConfig, buildHook = customBuild}'

Setup.hs:88:21:
    Couldn't match expected type `GenericPackageDescription'
           against inferred type `Either
                                    GenericPackageDescription PackageDescription'
      Expected type: (GenericPackageDescription, HookedBuildInfo)
      Inferred type: (Either
                        GenericPackageDescription PackageDescription,
                      HookedBuildInfo)
    In the first argument of `configure', namely `pdbi'
    In a stmt of a 'do' expression: lbi <- configure pdbi cf

What version of the product are you using? On what operating system?
OS: Mac OS X 10.6.2
GHC: 6.12.1
HUnit, fgl, mtl, parsec, and parsec: latest version at HackageDB

Original issue reported on code.google.com by nolica.s...@gmail.com on 9 Feb 2010 at 5:03

GoogleCodeExporter commented 9 years ago
same exact problem

Original comment by erik.fli...@gmail.com on 7 Mar 2010 at 5:40

GoogleCodeExporter commented 9 years ago
I managed to get hoc to compile with GHC 6.12.1 by just updating all the "ConT 
... AppT ..." vs "ClassP" TH errors and fixing some other random API changes 
(like the disappearance of CLDouble, Char/String in Data, and the Setup.hs 
issue). I also had to apply the patch in 
http://code.google.com/p/hoc/issues/detail?id=24 to get the bindings to 
generate in SL.

I've attached the patch with the API change fixes. Note that they were done 
simply by following the types, not understanding the code, so I might have 
changed some functionality or there might be some "unexhaustive pattern match" 
lurking, but it seems to work fine, I've successfully compiled and run all 
examples.

Original comment by pedromar...@gmail.com on 17 Jun 2010 at 2:20

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you for the patch. I have applied some mixture of it and a patch I 
received by e-mail earlier this week.

Original comment by aut...@gmail.com on 18 Jun 2010 at 12:44