Re: [Haskell-cafe] cabal install: Could not find module `Text.XML.HXT.Arrow'

On Tue, Nov 8, 2011 at 2:31 PM, Audun Skaugen
Erik Hesselink wrote:
On Tue, Nov 8, 2011 at 12:16, Ivan Lazar Miljenovic
wrote: On 8 November 2011 22:10, Erik Hesselink
wrote: This is because hSimpleDB doesn't specify version ranges on its dependencies, when it should. Since hxt changed its module structure going from 9.0 to 9.1, hSimpleDB doesn't build against 9.0.
You can try to build it by adding '--constraint=hxt==9.0.\*' after your cabal-install command. You can also ask the author to add version ranges to the package.
Is the escape needed if you're using single quotes?
I don't know. I always escape *s in shell commands to be sure the shell doesn't expand them, but in most of the cases, it probably works without them. It will likely even work without quotes and without the escape, unless you have files matching the pattern.
The single quote doesn't expand anything, so you don't need to escape the *. Actually, this will result in the backslash also being passed to cabal, so I would be surprised if your command works at all.
No matter how you escape *, you get the same error: Preprocessing library hSimpleDB-0.3... Building hSimpleDB-0.3... src/Network/AWS/Authentication.hs:47:7: Could not find module `Text.XML.HXT.Arrow':

Package Text.XML.HXT.Arrow existed only in 8.5.2 version of hxt:
http://hackage.haskell.org/packages/archive/hxt/8.5.2/doc/html/Text-XML-HXT-...
Yet trying to install with this version produce even more problems:
~>cabal --constraint=hxt==8.5.2 install hSimpleDB
Resolving dependencies...
cabal: cannot configure Crypto-4.2.3. It requires QuickCheck >=2.4.0.1
For the dependency on QuickCheck >=2.4.0.1 there are these packages:
QuickCheck-2.4.0.1, QuickCheck-2.4.1 and QuickCheck-2.4.1.1. However none of
them are available.
QuickCheck-2.4.0.1 was excluded because tagsoup-0.8 requires QuickCheck
==2.1.*
QuickCheck-2.4.1 was excluded because tagsoup-0.8 requires QuickCheck
==2.1.*
QuickCheck-2.4.1.1 was excluded because tagsoup-0.8 requires QuickCheck
==2.1.*
On Tue, Nov 8, 2011 at 2:43 PM, dokondr
On Tue, Nov 8, 2011 at 2:31 PM, Audun Skaugen
wrote: Erik Hesselink wrote:
On Tue, Nov 8, 2011 at 12:16, Ivan Lazar Miljenovic
wrote: On 8 November 2011 22:10, Erik Hesselink
wrote: This is because hSimpleDB doesn't specify version ranges on its dependencies, when it should. Since hxt changed its module structure going from 9.0 to 9.1, hSimpleDB doesn't build against 9.0.
You can try to build it by adding '--constraint=hxt==9.0.\*' after your cabal-install command. You can also ask the author to add version ranges to the package.
Is the escape needed if you're using single quotes?
I don't know. I always escape *s in shell commands to be sure the shell doesn't expand them, but in most of the cases, it probably works without them. It will likely even work without quotes and without the escape, unless you have files matching the pattern.
The single quote doesn't expand anything, so you don't need to escape the *. Actually, this will result in the backslash also being passed to cabal, so I would be surprised if your command works at all.
No matter how you escape *, you get the same error:
Preprocessing library hSimpleDB-0.3... Building hSimpleDB-0.3...
src/Network/AWS/Authentication.hs:47:7: Could not find module `Text.XML.HXT.Arrow':
participants (1)
-
dokondr