ghc-pkg can't use path with spaces.
On Windows environment, file path uses spaces for some directory. e.g. Program Files, Desktop, My Document. But ghc-pkg can't use path with spaces. This causes problem for a few projects.
wxHaskell project uses ghc-pkg to register Haskell packages for distributing binary package. But we can't register wxHaskell in Desktop or users My Document directory. Because these directory have spaces in path, and ghc-pkg can't use spaces in path.
name:wxcore
version:0.10.3
homepage:http://wxhaskell.sourceforge.net
author:Daan Leijen
exposed:True
exposed-modules: Graphics.UI.WXCore,
Graphics.UI.WXCore.WxcClasses,
Graphics.UI.WXCore.WxcClassInfo,
Graphics.UI.WXCore.WxcDefs,
Graphics.UI.WXCore.Types,
Graphics.UI.WXCore.Defines,
Graphics.UI.WXCore.DragAndDrop,
Graphics.UI.WXCore.Draw,
Graphics.UI.WXCore.Events,
Graphics.UI.WXCore.Frame,
Graphics.UI.WXCore.Layout,
Graphics.UI.WXCore.Process,
Graphics.UI.WXCore.Print,
Graphics.UI.WXCore.Dialogs,
Graphics.UI.WXCore.Image,
Graphics.UI.WXCore.Controls,
Graphics.UI.WXCore.Db,
Graphics.UI.WXCore.OpenGL,
Graphics.UI.WXCore.WxcObject,
Graphics.UI.WXCore.WxcClassTypes,
Graphics.UI.WXCore.WxcTypes,
Graphics.UI.WXCore.WxcClassesAL,
Graphics.UI.WXCore.WxcClassesMZ
hs-libraries:wxcore,wxcore0,wxcore1,wxcore2
extra-libraries:wxc-msw2.8.7-0.10.3
depends: base, containers, haskell98, stm
extra-ld-opts:
import-dirs:C:\Documents and Settings\shelarcy\デスクトップ\wxhaskell-0.10.3\lib\imports
library-dirs:C:\Documents and Settings\shelarcy\デスクトップ\wxhaskell-0.10.3\lib
I tried to uses below two style instead of above style. But I can't fix this problem.
import-dirs:"C:\Documents and Settings\shelarcy\デスクトップ\wxhaskell-0.10.3\lib\imports"
library-dirs:"C:\Documents and Settings\shelarcy\デスクトップ\wxhaskell-0.10.3\lib"
import-dirs:"\"C:\Documents and Settings\shelarcy\デスクトップ\wxhaskell-0.10.3\lib\imports"\"
library-dirs:"\"C:\Documents and Settings\shelarcy\デスクトップ\wxhaskell-0.10.3\lib"\"
So, I think this is a bug for ghc-pkg.
wxHaskell users asking about this problem again and again. So, this is an important problem. But I can't fix this problem without fixing ghc-pkg bug or extending Cabal.
http://sourceforge.net/tracker/index.php?func=detail&aid=1400488&group_id=73133&atid=536845 http://www.haskell.org/haskellwiki/WxHaskell/Install#GHC_6.8.2.2C_wxWidgets_2.6.4.2C_wxHaskell_0.10.3rc1_.28binary.29
Trac metadata
Trac field | Value |
---|---|
Version | 6.8.3 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | shelarcy@gmail.com |
Operating system | |
Architecture | Multiple |