[Hackage] #325: SHGetFolderPath requiered to configure cabal 1.4
Hackage
trac at galois.com
Sat Aug 16 08:23:11 EDT 2008
#325: SHGetFolderPath requiered to configure cabal 1.4
----------------------------+-----------------------------------------------
Reporter: guest | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: Cabal library | Version: 1.2.3.0
Severity: normal | Resolution:
Keywords: | Difficulty: normal
Ghcversion: 6.8.2 | Platform:
----------------------------+-----------------------------------------------
Comment (by duncan):
The README file suggests:
{{{
ghc --make Setup
./Setup configure --user
./Setup build
./Setup install
}}}
The reason it imports SHGetFolderPath is to find the location of the
`Program Files` directory. Unfortunately that is not provided by either
System.Directory or anything in the Win32 binding package so we have to
directly FFI import that ourselves. Unfortunately ghci does not know to
link in the appropriate dll (and there's no automatic way for us to tell
it) so Cabal will not work in ghci by default. You can either compile it
(because gcc does link in the lib by default) or add something like
`-lshell32` when invoking `ghci`/`runghc`.
So I don't see any obvious solutions at the moment. If the Win32 or
directory package provided what we need then that'd be a great
improvement.
Unless someone can see a solution I'm missing I'll have to mark this bug
'wontfix'.
--
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/325#comment:1>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects
More information about the cabal-devel
mailing list