Trouble installing FileManipCompat

Hi, I'm trying to install FileManipCompat(well, really HStringTemplateHelpers, but the error is from FileManipCompat) and I'm getting this error: [1 of 1] Compiling System.FilePath.FindCompat ( System/FilePath/FindCompat.hs, dist/build/System/FilePath/FindCompat.o ) System/FilePath/FindCompat.hs:175:20: Not in scope: data constructor `State' I've attached the complete output of `cabal --verbose install HStringTemplateHelpers`.

On Wednesday 05 January 2011 01:54:36, Tony Miller wrote:
Hi,
I'm trying to install FileManipCompat(well, really HStringTemplateHelpers, but the error is from FileManipCompat) and I'm getting this error:
[1 of 1] Compiling System.FilePath.FindCompat ( System/FilePath/FindCompat.hs, dist/build/System/FilePath/FindCompat.o )
System/FilePath/FindCompat.hs:175:20: Not in scope: data constructor `State'
Apparently the code is written for an older version of mtl. As of mtl-2.*, State is no longer a separate type, it's a type synonym for StateT s Identity now. You can try $ cabal install --constraint="mtl < 2.0" HStringTemplateHelpers (although having multiple versions of mtl installed may lead to some headaches too).

Thanks that works, but I have packages that rely on mtl>=2.0, so its
not the best solution. Perhaps the maintainer of FileManipCompat could
be contacted to update the package?
On 1/4/11, Daniel Fischer
On Wednesday 05 January 2011 01:54:36, Tony Miller wrote:
Hi,
I'm trying to install FileManipCompat(well, really HStringTemplateHelpers, but the error is from FileManipCompat) and I'm getting this error:
[1 of 1] Compiling System.FilePath.FindCompat ( System/FilePath/FindCompat.hs, dist/build/System/FilePath/FindCompat.o )
System/FilePath/FindCompat.hs:175:20: Not in scope: data constructor `State'
Apparently the code is written for an older version of mtl. As of mtl-2.*, State is no longer a separate type, it's a type synonym for
StateT s Identity
now.
You can try
$ cabal install --constraint="mtl < 2.0" HStringTemplateHelpers
(although having multiple versions of mtl installed may lead to some headaches too).

On Wednesday 05 January 2011 19:43:53, Tony Miller wrote:
Thanks that works, but I have packages that rely on mtl>=2.0, so its not the best solution. Perhaps the maintainer of FileManipCompat could be contacted to update the package?
Visiting http://hackage.haskell.org/package/FileManip reveals that that package is obsolete, one should use filemanip (all lowercase) instead, which has been built on 6.12 and 7.0, so that should work and it's rather the maintainer(s) of HStringTemplateHelpers (and FileManipCompat) who should be asked to update their package(s).

I uploaded a new version of FileManipCompat which is mtl-2 compatible.
2011/1/5 Daniel Fischer
On Wednesday 05 January 2011 19:43:53, Tony Miller wrote:
Thanks that works, but I have packages that rely on mtl>=2.0, so its not the best solution. Perhaps the maintainer of FileManipCompat could be contacted to update the package?
Visiting http://hackage.haskell.org/package/FileManip reveals that that package is obsolete, one should use filemanip (all lowercase) instead, which has been built on 6.12 and 7.0, so that should work and it's rather the maintainer(s) of HStringTemplateHelpers (and FileManipCompat) who should be asked to update their package(s).
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (3)
-
Daniel Fischer
-
Thomas Hartman
-
Tony Miller