On 2008.05.13 23:31:17 +0200, Harri Kiiskinen <[EMAIL PROTECTED]> scribbled 
1.1K characters:
> Hello,
>
> I've tried to compile hsffig-1.0pl2, unsuccesfully, also from the
> unstable darcs repo. I'm using ghc-6.8 (ghc6-6.8.2 from Debian
> unstable). HSFFIG comes with its own version of Cabal, but I cannot get
> past the configuration phase (./cabal-setup configure), when I get the
> following output:
>
> Configuring HSFFIG-1.0...
> configure: searching for ghc in path.
> configure: found ghc at /usr/bin/ghc
> configure: looking for package tool: ghc-pkg near compiler
> in /usr/bin/ghc
> configure: found package tool in /usr/bin/ghc-pkg
> configure: Using install prefix: /usr/local
> configure: Using compiler: /usr/bin/ghc
> configure: Compiler flavor: GHC
> configure: Compiler version: 6.8.2
> configure: Using package tool: /usr/bin/ghc-pkg
> configure: Using haddock: /usr/bin/haddock
> configure: Using happy: /usr/bin/happy
> configure: Using alex: /usr/bin/alex
> configure: Using hsc2hs: /usr/bin/hsc2hs
> configure: Using cpphs: /usr/bin/cpphs
> configure: Reading installed packages...
> configure: Dependency base-any: using base-3.0.1.0
> cannot satisfy dependency text-any
>
> Does anyone have an idea, how the dependency 'text-any' could be
> satisfied?
>
> Harri K.

hsffig is old enough you should probably be using the latest, from Darcs 
(although the last patch is still from February 2006): 
<http://www.golubovsky.org/repos/hsffig-1.1>. I got a little further by running 
make and then modifying the build-depends:

+Build-depends:  base>3, parsec, hxt, Cabal>=1.1.3, filepath, unix, process, 
containers, array, directory

Which leads to a bunch of build errors:

[ 5 of 14] Compiling TokenOps         ( programs/TokenOps.hs, 
dist/build/ffipkg/ffipkg-tmp/TokenOps.o )

programs/TokenOps.hs:48:11:
    No instance for (Text.Parsec.Prim.Stream
                       s mtl-1.1.0.0:Control.Monad.Identity.Identity Token)
      arising from a use of `tokenTest' at programs/TokenOps.hs:48:11-45
    Possible fix:
      add an instance declaration for
      (Text.Parsec.Prim.Stream
         s mtl-1.1.0.0:Control.Monad.Identity.Identity Token)
    In the expression: tokenTest (TCOMM_OPEN undefined) tf
    In the definition of `commOpen':
        commOpen = tokenTest (TCOMM_OPEN undefined) tf
                 where
                     tf (TCOMM_OPEN _) (TCOMM_OPEN _) = True
                     tf _ _ = False

programs/TokenOps.hs:52:12:
    No instance for (Text.Parsec.Prim.Stream
                       s1 mtl-1.1.0.0:Control.Monad.Identity.Identity Token)
      arising from a use of `tokenTest' at programs/TokenOps.hs:52:12-47
    Possible fix:
      add an instance declaration for
      (Text.Parsec.Prim.Stream
         s1 mtl-1.1.0.0:Control.Monad.Identity.Identity Token)
    In the expression: tokenTest (TCOMM_CLOSE undefined) tf
    In the definition of `commClose':
        commClose = tokenTest (TCOMM_CLOSE undefined) tf
                  where
                      tf (TCOMM_CLOSE _) (TCOMM_CLOSE _) = True
                      tf _ _ = False

programs/TokenOps.hs:58:10:
    No instance for (Text.Parsec.Prim.Stream
                       s2 mtl-1.1.0.0:Control.Monad.Identity.Identity Token)
      arising from a use of `tokenTest' at programs/TokenOps.hs:58:10-50
    Possible fix:
      add an instance declaration for
      (Text.Parsec.Prim.Stream
         s2 mtl-1.1.0.0:Control.Monad.Identity.Identity Token)
    In the expression: tokenTest (TKFILE undefined undefined) tf
    In the definition of `anyFile':
        anyFile = tokenTest (TKFILE undefined undefined) tf
                where
                    tf (TKFILE _ _) (TKFILE _ _) = True
                    tf _ _ = False

programs/TokenOps.hs:64:12:
    No instance for (Text.Parsec.Prim.Stream
                       s3 mtl-1.1.0.0:Control.Monad.Identity.Identity Token)
      arising from a use of `tokenTest' at programs/TokenOps.hs:64:12-54
    Possible fix:
      add an instance declaration for
      (Text.Parsec.Prim.Stream
         s3 mtl-1.1.0.0:Control.Monad.Identity.Identity Token)
    In the expression: tokenTest (TKSTRING undefined undefined) tf
    In the definition of `anyString':
        anyString = tokenTest (TKSTRING undefined undefined) tf
                  where
                      tf (TKSTRING _ _) (TKSTRING _ _) = True
                      tf _ _ = False

programs/TokenOps.hs:70:9:
    No instance for (Text.Parsec.Prim.Stream
                       s4 mtl-1.1.0.0:Control.Monad.Identity.Identity Token)
      arising from a use of `tokenTest' at programs/TokenOps.hs:70:9-48
    Possible fix:
      add an instance declaration for
      (Text.Parsec.Prim.Stream
         s4 mtl-1.1.0.0:Control.Monad.Identity.Identity Token)
    In the expression: tokenTest (TKDEF undefined undefined) tf
    In the definition of `anyDef':
        anyDef = tokenTest (TKDEF undefined undefined) tf
               where
                   tf (TKDEF _ _) (TKDEF _ _) = True
                   tf _ _ = False

programs/TokenOps.hs:115:8:
    No instance for (Text.Parsec.Prim.Stream
                       s5 mtl-1.1.0.0:Control.Monad.Identity.Identity Token)
      arising from a use of `tokenTest' at programs/TokenOps.hs:115:8-45
    Possible fix:
      add an instance declaration for
      (Text.Parsec.Prim.Stream
         s5 mtl-1.1.0.0:Control.Monad.Identity.Identity Token)
    In the expression: tokenTest (TKW undefined undefined) tf
    In the definition of `anyKw':
        anyKw = tokenTest (TKW undefined undefined) tf
              where
                  tf (TKW _ _) (TKW _ _) = True
                  tf _ _ = False

programs/TokenOps.hs:121:8:
    No instance for (Text.Parsec.Prim.Stream
                       s6 mtl-1.1.0.0:Contr

----

Oh dear. I suppose one might want to ask the hsffig devs whether they will 
update hsffig / trouble-shoot this, or if hsffig is even still worth using 
(perhaps it was meant to occupy a niche since filled).

--
gwern
JD Uzbekistan SARL Goldman Mole Hello 52 SGDN Red SIG

Attachment: pgpU7bsLYsaru.pgp
Description: PGP signature

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to