[MacPorts] #24244: hs-hashed-storage won't install

MacPorts noreply at macports.org
Sun Apr 18 04:08:21 PDT 2010

#24244: hs-hashed-storage won't install
 Reporter:  bhyde@…          |       Owner:  gwright@…           
     Type:  defect           |      Status:  new                 
 Priority:  Normal           |   Milestone:                      
Component:  ports            |     Version:  1.8.2               
 Keywords:                   |        Port:  hs-hashed-storage   

Comment(by josephholsten@…):

 I contacted the maintainer of the package listed at
 http://hackage.haskell.org/package/hashed-storage, perhaps he can help.

 I tried to build manually, like bhyde, by hacking the cabal file to ignore
 the dependency on mmap >=0.4 && < 0.5. I got the following error.

 % runhaskell Setup configure -v --enable-library-profiling
 ...[warnings, etc]...
 [ 7 of 12] Compiling Storage.Hashed.Index ( Storage/Hashed/Index.hs,
 dist/build/Storage/Hashed/Index.o )

     Couldn't match expected type `(ForeignPtr a1, Int, Int)'
            against inferred type `(a2, b)'
     In the pattern: (x, _)
     In a stmt of a 'do' expression:
         (x, _) <- mmapFileForeignPtr
                     indexpath ReadWrite (Just (0, size + size_magic))
     In the expression:
         do (x, _) <- mmapFileForeignPtr
                        indexpath ReadWrite (Just (0, size + size_magic))
            return (x, size)

 This seems to be because hs-mmap 0.5 changes the function signature of
 mmapFileForeignPtr. For those daringest few who might hack this into
 submission, here's a link to the most recent (0.5.6) hs-mmap docs:

Ticket URL: <http://trac.macports.org/ticket/24244#comment:6>
MacPorts <http://www.macports.org/>
Ports system for Mac OS

More information about the macports-tickets mailing list