haskell - leksah install fails due to regex-tdfa-text-1.0.0.2 -
on ubuntu 12.04, ghc 7.10.3, cabal 1.22.3, 4 gigs of ram, error when installing leksah, following these instructions.
any idea how solve ? causing this?
joco@vm001:~$ cabal install leksah resolving dependencies... configuring regex-tdfa-text-1.0.0.2... building regex-tdfa-text-1.0.0.2... failed install regex-tdfa-text-1.0.0.2 build log ( /home/joco/.cabal/logs/regex-tdfa-text-1.0.0.2.log ): configuring regex-tdfa-text-1.0.0.2... building regex-tdfa-text-1.0.0.2... preprocessing library regex-tdfa-text-1.0.0.2... [1 of 2] compiling text.regex.tdfa.text.lazy ( text/regex/tdfa/text/lazy.hs, dist/build/text/regex/tdfa/text/lazy.o ) text/regex/tdfa/text/lazy.hs:77:9: non type-variable argument in constraint: data.array.base.iarray (int, int) (use flexiblecontexts permit this) when checking ‘go’ has inferred type go :: forall t (a :: * -> * -> *) i. (functor (a i), num i, ghc.arr.ix i, data.array.base.iarray (int, int), extract t) => int -> t -> [a (int, int)] -> [a (t, (int, int))] in expression: let go _ _ | `seq` false = undefined go _i _t [] = [] go t (x : xs) = let ... in fmap trans x : seq t' (go (off0 + len0) t' xs) in go 0 source (matchall regex source) in equation ‘matchalltext’: matchalltext regex source = let go _ _ | `seq` false = undefined go _i _t [] = ... go t (x : xs) = ... in go 0 source (matchall regex source) cabal: error: packages failed install: leksah-0.15.0.1 depends on regex-tdfa-text-1.0.0.2 failed install. regex-tdfa-text-1.0.0.2 failed during building phase. exception was: exitfailure 1 joco@vm001:~$ cabal --version cabal-install version 1.22.4.0 using version 1.22.3.0 of cabal library joco@vm001:~$ ghc --version glorious glasgow haskell compilation system, version 7.10.1
run:
cabal install regex-tdfa-text --ghc-options=-xflexiblecontexts then try again.
Comments
Post a Comment