*** setup configure Configuring libGenI-0.16.1... Flags chosen: splitbase=True Dependency HUnit -any: using HUnit-1.2.2.1 Dependency QuickCheck -any: using QuickCheck-2.3 Dependency base >=3: using base-4.2.0.2 Dependency binary -any: using binary-0.5.0.2 Dependency containers -any: using containers-0.3.0.0 Dependency mtl -any: using mtl-1.1.1.0 Dependency parsec -any: using parsec-3.1.0 Dependency process -any: using process-1.0.1.3 Using Cabal-1.8.0.6 compiled by ghc-6.12 Using compiler: ghc-6.12.3 Using install prefix: /usr/local/tmp/archive/install Binaries installed in: /usr/local/tmp/archive/install/bin Libraries installed in: /usr/local/tmp/archive/install/lib/libGenI-0.16.1/ghc-6.12.3 Private binaries installed in: /usr/local/tmp/archive/install/libexec Data files installed in: /usr/local/tmp/archive/install/share/libGenI-0.16.1 Documentation installed in: /usr/local/tmp/archive/install/share/doc/libGenI-0.16.1 Using alex version 2.3.3 found on system at: /usr/bin/alex Using ar found on system at: /usr/bin/ar Using c2hs version 0.16.0 found on system at: /usr/local/bin/c2hs Using cpphs version 1.11 found on system at: /usr/local/bin/cpphs Using ffihugs found on system at: /usr/local/bin/ffihugs Using gcc version 4.4.5 found on system at: /usr/bin/gcc Using ghc version 6.12.3 found on system at: /usr/local/bin/ghc Using ghc-pkg version 6.12.3 found on system at: /usr/local/bin/ghc-pkg Using greencard found on system at: /usr/local/tmp/archive/install/bin/greencard Using haddock version 2.8.1 found on system at: /usr/local/bin/haddock Using happy version 1.17 found on system at: /usr/local/bin/happy No hmake found Using hsc2hs version 0.67 found on system at: /usr/local/bin/hsc2hs Using hscolour version 1.17 found on system at: /usr/local/bin/HsColour Using hugs found on system at: /usr/local/bin/hugs No jhc found Using ld found on system at: /usr/bin/ld No lhc found No lhc-pkg found No nhc98 found Using pkg-config version 0.25 found on system at: /usr/bin/pkg-config Using ranlib found on system at: /usr/bin/ranlib Using strip found on system at: /usr/bin/strip Using tar found on system at: /bin/tar *** setup build Creating dist/build (and its parents) Creating dist/build/autogen (and its parents) Preprocessing library libGenI-0.16.1... Building libGenI-0.16.1... Building library... Creating dist/build (and its parents) /usr/local/bin/ghc --make -package-name libGenI-0.16.1 -hide-all-packages -fbuilding-cabal-package -i -idist/build -ilibgeni -idist/build/autogen -Idist/build/autogen -Idist/build -optP-include -optPdist/build/autogen/cabal_macros.h -odir dist/build -hidir dist/build -stubdir dist/build -package-id HUnit-1.2.2.1-e0ae454ae6a63df781b9c31184c1a583 -package-id QuickCheck-2.3-73067c147a68e8982978b162c861b9ba -package-id base-4.2.0.2-10bdacb430274706a59728e237e2bfb3 -package-id binary-0.5.0.2-d8a2016532c382364dd8eb78608b883d -package-id containers-0.3.0.0-ee442470d8dcc9e45f31677c400c5379 -package-id mtl-1.1.1.0-d036dc304ce29f3ccf77920ec7880651 -package-id parsec-3.1.0-ccf6ae97925e712f7e390bc3d1543a12 -package-id process-1.0.1.3-73f46aa4e6bf1a4f2f418a3c761e4e80 -O -Wall -O2 -XCPP -XRank2Types -XOverlappingInstances -XMultiParamTypeClasses -XFlexibleContexts -XTypeSynonymInstances -XFlexibleInstances -XDeriveDataTypeable -XExistentialQuantification -XLiberalTypeSynonyms NLP.GenI.Btypes NLP.GenI.BtypesBinary NLP.GenI.General NLP.GenI.GeniParsers NLP.GenI.GeniShow NLP.GenI.Tags NLP.GenI.Morphology NLP.GenI.Polarity NLP.GenI.Automaton NLP.GenI.Statistics NLP.GenI.Builder NLP.GenI.Simple.SimpleBuilder NLP.GenI.CkyEarley.CkyBuilder NLP.GenI.Geni NLP.GenI.Configuration libgeni/NLP/GenI/Btypes.lhs:72:7: Could not find module `Data.Generics': It is a member of the hidden package `syb-0.1.0.2'. Perhaps you need to add `syb' to the build-depends in your .cabal file. It is a member of the hidden package `base-3.0.3.2'. Perhaps you need to add `base' to the build-depends in your .cabal file. Use -v to see a list of the files searched for. *** Trying again with preferred-versions *** setup configure Configuring libGenI-0.16.1... Flags chosen: splitbase=True Dependency HUnit -any: using HUnit-1.2.2.1 Dependency QuickCheck <2: using QuickCheck-1.2.0.0 Dependency base ==3.*: using base-3.0.3.2 Dependency binary -any: using binary-0.5.0.2 Dependency containers -any: using containers-0.3.0.0 Dependency mtl -any: using mtl-1.1.1.0 Dependency parsec <3: using parsec-2.1.0.1 Dependency process -any: using process-1.0.1.3 Using Cabal-1.8.0.6 compiled by ghc-6.12 Using compiler: ghc-6.12.3 Using install prefix: /usr/local/tmp/archive/install Binaries installed in: /usr/local/tmp/archive/install/bin Libraries installed in: /usr/local/tmp/archive/install/lib/libGenI-0.16.1/ghc-6.12.3 Private binaries installed in: /usr/local/tmp/archive/install/libexec Data files installed in: /usr/local/tmp/archive/install/share/libGenI-0.16.1 Documentation installed in: /usr/local/tmp/archive/install/share/doc/libGenI-0.16.1 Using alex version 2.3.3 found on system at: /usr/bin/alex Using ar found on system at: /usr/bin/ar Using c2hs version 0.16.0 found on system at: /usr/local/bin/c2hs Using cpphs version 1.11 found on system at: /usr/local/bin/cpphs Using ffihugs found on system at: /usr/local/bin/ffihugs Using gcc version 4.4.5 found on system at: /usr/bin/gcc Using ghc version 6.12.3 found on system at: /usr/local/bin/ghc Using ghc-pkg version 6.12.3 found on system at: /usr/local/bin/ghc-pkg Using greencard found on system at: /usr/local/tmp/archive/install/bin/greencard Using haddock version 2.8.1 found on system at: /usr/local/bin/haddock Using happy version 1.17 found on system at: /usr/local/bin/happy No hmake found Using hsc2hs version 0.67 found on system at: /usr/local/bin/hsc2hs Using hscolour version 1.17 found on system at: /usr/local/bin/HsColour Using hugs found on system at: /usr/local/bin/hugs No jhc found Using ld found on system at: /usr/bin/ld No lhc found No lhc-pkg found No nhc98 found Using pkg-config version 0.25 found on system at: /usr/bin/pkg-config Using ranlib found on system at: /usr/bin/ranlib Using strip found on system at: /usr/bin/strip Using tar found on system at: /bin/tar *** setup haddock Running Haddock for libGenI-0.16.1... /usr/local/bin/haddock --use-contents=/package/libGenI-0.16.1 --built-in-themes --ghc-version Creating dist/build (and its parents) Creating dist/build/autogen (and its parents) Preprocessing library libGenI-0.16.1... Running hscolour for libGenI-0.16.1... Creating dist/doc/html/libGenI (and its parents) Creating dist/doc/html/libGenI/src (and its parents) /usr/local/bin/HsColour -print-css -odist/doc/html/libGenI/src/hscolour.css /usr/local/bin/HsColour -css -anchor -odist/doc/html/libGenI/src/NLP-GenI-Btypes.html libgeni/NLP/GenI/Btypes.lhs /usr/local/bin/HsColour -css -anchor -odist/doc/html/libGenI/src/NLP-GenI-BtypesBinary.html libgeni/NLP/GenI/BtypesBinary.hs /usr/local/bin/HsColour -css -anchor -odist/doc/html/libGenI/src/NLP-GenI-General.html libgeni/NLP/GenI/General.lhs /usr/local/bin/HsColour -css -anchor -odist/doc/html/libGenI/src/NLP-GenI-GeniParsers.html libgeni/NLP/GenI/GeniParsers.lhs /usr/local/bin/HsColour -css -anchor -odist/doc/html/libGenI/src/NLP-GenI-GeniShow.html libgeni/NLP/GenI/GeniShow.lhs /usr/local/bin/HsColour -css -anchor -odist/doc/html/libGenI/src/NLP-GenI-Tags.html libgeni/NLP/GenI/Tags.lhs /usr/local/bin/HsColour -css -anchor -odist/doc/html/libGenI/src/NLP-GenI-Morphology.html libgeni/NLP/GenI/Morphology.lhs /usr/local/bin/HsColour -css -anchor -odist/doc/html/libGenI/src/NLP-GenI-Polarity.html libgeni/NLP/GenI/Polarity.lhs /usr/local/bin/HsColour -css -anchor -odist/doc/html/libGenI/src/NLP-GenI-Automaton.html libgeni/NLP/GenI/Automaton.lhs /usr/local/bin/HsColour -css -anchor -odist/doc/html/libGenI/src/NLP-GenI-Statistics.html libgeni/NLP/GenI/Statistics.hs /usr/local/bin/HsColour -css -anchor -odist/doc/html/libGenI/src/NLP-GenI-Builder.html libgeni/NLP/GenI/Builder.lhs /usr/local/bin/HsColour -css -anchor -odist/doc/html/libGenI/src/NLP-GenI-Simple-SimpleBuilder.html libgeni/NLP/GenI/Simple/SimpleBuilder.lhs /usr/local/bin/HsColour -css -anchor -odist/doc/html/libGenI/src/NLP-GenI-CkyEarley-CkyBuilder.html libgeni/NLP/GenI/CkyEarley/CkyBuilder.lhs /usr/local/bin/HsColour -css -anchor -odist/doc/html/libGenI/src/NLP-GenI-Geni.html libgeni/NLP/GenI/Geni.lhs /usr/local/bin/HsColour -css -anchor -odist/doc/html/libGenI/src/NLP-GenI-Configuration.html libgeni/NLP/GenI/Configuration.lhs Warning: The documentation for the following packages are not installed. No links will be generated to these packages: base-3.0.3.2, ffi-1.0, rts-1.0 /usr/local/bin/ghc --print-libdir /usr/local/bin/ghc -E -cpp -x hs -optP-include -optPdist/build/autogen/cabal_macros.h -o dist/build/tmp15178/libgeni/NLP/GenI/Btypes.lhs libgeni/NLP/GenI/Btypes.lhs -Dlinux_BUILD_OS -Dlinux_HOST_OS -Di386_BUILD_ARCH -Di386_HOST_ARCH -D__GLASGOW_HASKELL__=612 /usr/local/bin/ghc -E -cpp -x hs -optP-include -optPdist/build/autogen/cabal_macros.h -o dist/build/tmp15178/libgeni/NLP/GenI/BtypesBinary.hs libgeni/NLP/GenI/BtypesBinary.hs -Dlinux_BUILD_OS -Dlinux_HOST_OS -Di386_BUILD_ARCH -Di386_HOST_ARCH -D__GLASGOW_HASKELL__=612 /usr/local/bin/ghc -E -cpp -x hs -optP-include -optPdist/build/autogen/cabal_macros.h -o dist/build/tmp15178/libgeni/NLP/GenI/General.lhs libgeni/NLP/GenI/General.lhs -Dlinux_BUILD_OS -Dlinux_HOST_OS -Di386_BUILD_ARCH -Di386_HOST_ARCH -D__GLASGOW_HASKELL__=612 /usr/local/bin/ghc -E -cpp -x hs -optP-include -optPdist/build/autogen/cabal_macros.h -o dist/build/tmp15178/libgeni/NLP/GenI/GeniParsers.lhs libgeni/NLP/GenI/GeniParsers.lhs -Dlinux_BUILD_OS -Dlinux_HOST_OS -Di386_BUILD_ARCH -Di386_HOST_ARCH -D__GLASGOW_HASKELL__=612 /usr/local/bin/ghc -E -cpp -x hs -optP-include -optPdist/build/autogen/cabal_macros.h -o dist/build/tmp15178/libgeni/NLP/GenI/GeniShow.lhs libgeni/NLP/GenI/GeniShow.lhs -Dlinux_BUILD_OS -Dlinux_HOST_OS -Di386_BUILD_ARCH -Di386_HOST_ARCH -D__GLASGOW_HASKELL__=612 /usr/local/bin/ghc -E -cpp -x hs -optP-include -optPdist/build/autogen/cabal_macros.h -o dist/build/tmp15178/libgeni/NLP/GenI/Tags.lhs libgeni/NLP/GenI/Tags.lhs -Dlinux_BUILD_OS -Dlinux_HOST_OS -Di386_BUILD_ARCH -Di386_HOST_ARCH -D__GLASGOW_HASKELL__=612 /usr/local/bin/ghc -E -cpp -x hs -optP-include -optPdist/build/autogen/cabal_macros.h -o dist/build/tmp15178/libgeni/NLP/GenI/Morphology.lhs libgeni/NLP/GenI/Morphology.lhs -Dlinux_BUILD_OS -Dlinux_HOST_OS -Di386_BUILD_ARCH -Di386_HOST_ARCH -D__GLASGOW_HASKELL__=612 /usr/local/bin/ghc -E -cpp -x hs -optP-include -optPdist/build/autogen/cabal_macros.h -o dist/build/tmp15178/libgeni/NLP/GenI/Polarity.lhs libgeni/NLP/GenI/Polarity.lhs -Dlinux_BUILD_OS -Dlinux_HOST_OS -Di386_BUILD_ARCH -Di386_HOST_ARCH -D__GLASGOW_HASKELL__=612 libgeni/NLP/GenI/Polarity.lhs:573:0: warning: backslash and newline separated by space libgeni/NLP/GenI/Polarity.lhs:588:0: warning: backslash and newline separated by space libgeni/NLP/GenI/Polarity.lhs:593:0: warning: backslash and newline separated by space /usr/local/bin/ghc -E -cpp -x hs -optP-include -optPdist/build/autogen/cabal_macros.h -o dist/build/tmp15178/libgeni/NLP/GenI/Automaton.lhs libgeni/NLP/GenI/Automaton.lhs -Dlinux_BUILD_OS -Dlinux_HOST_OS -Di386_BUILD_ARCH -Di386_HOST_ARCH -D__GLASGOW_HASKELL__=612 /usr/local/bin/ghc -E -cpp -x hs -optP-include -optPdist/build/autogen/cabal_macros.h -o dist/build/tmp15178/libgeni/NLP/GenI/Statistics.hs libgeni/NLP/GenI/Statistics.hs -Dlinux_BUILD_OS -Dlinux_HOST_OS -Di386_BUILD_ARCH -Di386_HOST_ARCH -D__GLASGOW_HASKELL__=612 /usr/local/bin/ghc -E -cpp -x hs -optP-include -optPdist/build/autogen/cabal_macros.h -o dist/build/tmp15178/libgeni/NLP/GenI/Builder.lhs libgeni/NLP/GenI/Builder.lhs -Dlinux_BUILD_OS -Dlinux_HOST_OS -Di386_BUILD_ARCH -Di386_HOST_ARCH -D__GLASGOW_HASKELL__=612 /usr/local/bin/ghc -E -cpp -x hs -optP-include -optPdist/build/autogen/cabal_macros.h -o dist/build/tmp15178/libgeni/NLP/GenI/Simple/SimpleBuilder.lhs libgeni/NLP/GenI/Simple/SimpleBuilder.lhs -Dlinux_BUILD_OS -Dlinux_HOST_OS -Di386_BUILD_ARCH -Di386_HOST_ARCH -D__GLASGOW_HASKELL__=612 /usr/local/bin/ghc -E -cpp -x hs -optP-include -optPdist/build/autogen/cabal_macros.h -o dist/build/tmp15178/libgeni/NLP/GenI/CkyEarley/CkyBuilder.lhs libgeni/NLP/GenI/CkyEarley/CkyBuilder.lhs -Dlinux_BUILD_OS -Dlinux_HOST_OS -Di386_BUILD_ARCH -Di386_HOST_ARCH -D__GLASGOW_HASKELL__=612 /usr/local/bin/ghc -E -cpp -x hs -optP-include -optPdist/build/autogen/cabal_macros.h -o dist/build/tmp15178/libgeni/NLP/GenI/Geni.lhs libgeni/NLP/GenI/Geni.lhs -Dlinux_BUILD_OS -Dlinux_HOST_OS -Di386_BUILD_ARCH -Di386_HOST_ARCH -D__GLASGOW_HASKELL__=612 /usr/local/bin/ghc -E -cpp -x hs -optP-include -optPdist/build/autogen/cabal_macros.h -o dist/build/tmp15178/libgeni/NLP/GenI/Configuration.lhs libgeni/NLP/GenI/Configuration.lhs -Dlinux_BUILD_OS -Dlinux_HOST_OS -Di386_BUILD_ARCH -Di386_HOST_ARCH -D__GLASGOW_HASKELL__=612 Creating dist/doc/html/libGenI/ (and its parents) /usr/local/bin/haddock --use-contents=/package/libGenI-0.16.1 --built-in-themes --prologue=dist/doc/html/libGenI/haddock-prolog15178.txt --dump-interface=dist/doc/html/libGenI/libGenI.haddock --optghc=-package-name --optghc=libGenI-0.16.1 --source-module=src/%{MODULE/./-}.html --source-entity=src/%{MODULE/./-}.html#%{NAME} --verbosity=1 --html --read-interface=/packages/archive/HUnit/1.2.2.1/doc/html,/usr/local/tmp/archive/install/share/doc/HUnit-1.2.2.1/html/HUnit.haddock --read-interface=/packages/archive/QuickCheck/1.2.0.0/doc/html,/usr/local/tmp/archive/install/share/doc/QuickCheck-1.2.0.0/html/QuickCheck.haddock --read-interface=/packages/archive/array/0.3.0.1/doc/html,/usr/local/share/doc/ghc/html/libraries/array-0.3.0.1/array.haddock --read-interface=/packages/archive/base/4.2.0.2/doc/html,/usr/local/share/doc/ghc/html/libraries/base-4.2.0.2/base.haddock --read-interface=/packages/archive/binary/0.5.0.2/doc/html,/usr/local/tmp/archive/install/share/doc/binary-0.5.0.2/html/binary.haddock --read-interface=/packages/archive/bytestring/0.9.1.7/doc/html,/usr/local/share/doc/ghc/html/libraries/bytestring-0.9.1.7/bytestring.haddock --read-interface=/packages/archive/containers/0.3.0.0/doc/html,/usr/local/share/doc/ghc/html/libraries/containers-0.3.0.0/containers.haddock --read-interface=/packages/archive/directory/1.0.1.1/doc/html,/usr/local/share/doc/ghc/html/libraries/directory-1.0.1.1/directory.haddock --read-interface=/packages/archive/filepath/1.1.0.4/doc/html,/usr/local/share/doc/ghc/html/libraries/filepath-1.1.0.4/filepath.haddock --read-interface=/packages/archive/ghc-prim/0.2.0.0/doc/html,/usr/local/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/ghc-prim.haddock --read-interface=/packages/archive/integer-gmp/0.2.0.1/doc/html,/usr/local/share/doc/ghc/html/libraries/integer-gmp-0.2.0.1/integer-gmp.haddock --read-interface=/packages/archive/mtl/1.1.1.0/doc/html,/usr/local/tmp/archive/install/share/doc/mtl-1.1.1.0/html/mtl.haddock --read-interface=/packages/archive/old-locale/1.0.0.2/doc/html,/usr/local/share/doc/ghc/html/libraries/old-locale-1.0.0.2/old-locale.haddock --read-interface=/packages/archive/old-time/1.0.0.5/doc/html,/usr/local/share/doc/ghc/html/libraries/old-time-1.0.0.5/old-time.haddock --read-interface=/packages/archive/parsec/2.1.0.1/doc/html,/usr/local/tmp/archive/install/share/doc/parsec-2.1.0.1/html/parsec.haddock --read-interface=/packages/archive/process/1.0.1.3/doc/html,/usr/local/share/doc/ghc/html/libraries/process-1.0.1.3/process.haddock --read-interface=/packages/archive/random/1.0.0.2/doc/html,/usr/local/share/doc/ghc/html/libraries/random-1.0.0.2/random.haddock --read-interface=/packages/archive/syb/0.1.0.2/doc/html,/usr/local/share/doc/ghc/html/libraries/syb-0.1.0.2/syb.haddock --read-interface=/packages/archive/time/1.1.4/doc/html,/usr/local/share/doc/ghc/html/libraries/time-1.1.4/time.haddock --read-interface=/packages/archive/unix/2.4.0.2/doc/html,/usr/local/share/doc/ghc/html/libraries/unix-2.4.0.2/unix.haddock --odir=dist/doc/html/libGenI/ --title=libGenI-0.16.1: A natural language generator (specifically, an FB-LTAG surface realiser) --optghc=-hide-all-packages --optghc=-fbuilding-cabal-package --optghc=-i --optghc=-idist/build --optghc=-ilibgeni --optghc=-idist/build/autogen --optghc=-Idist/build/autogen --optghc=-Idist/build --optghc=-optP-include --optghc=-optPdist/build/autogen/cabal_macros.h --optghc=-odir --optghc=dist/build --optghc=-hidir --optghc=dist/build --optghc=-stubdir --optghc=dist/build --optghc=-package-id --optghc=HUnit-1.2.2.1-e0ae454ae6a63df781b9c31184c1a583 --optghc=-package-id --optghc=QuickCheck-1.2.0.0-b45b62f212754a0f637424080defc346 --optghc=-package-id --optghc=base-3.0.3.2-260693a92016991a03206b5a55f6a411 --optghc=-package-id --optghc=binary-0.5.0.2-d8a2016532c382364dd8eb78608b883d --optghc=-package-id --optghc=containers-0.3.0.0-ee442470d8dcc9e45f31677c400c5379 --optghc=-package-id --optghc=mtl-1.1.1.0-d036dc304ce29f3ccf77920ec7880651 --optghc=-package-id --optghc=parsec-2.1.0.1-ea096577115d95b0cfde0225e2011564 --optghc=-package-id --optghc=process-1.0.1.3-73f46aa4e6bf1a4f2f418a3c761e4e80 --optghc=-O --optghc=-Wall --optghc=-O2 --optghc=-XCPP --optghc=-XRank2Types --optghc=-XOverlappingInstances --optghc=-XMultiParamTypeClasses --optghc=-XFlexibleContexts --optghc=-XTypeSynonymInstances --optghc=-XFlexibleInstances --optghc=-XDeriveDataTypeable --optghc=-XExistentialQuantification --optghc=-XLiberalTypeSynonyms -B/usr/local/lib/ghc-6.12.3 dist/build/tmp15178/libgeni/NLP/GenI/Btypes.hs dist/build/tmp15178/libgeni/NLP/GenI/BtypesBinary.hs dist/build/tmp15178/libgeni/NLP/GenI/General.hs dist/build/tmp15178/libgeni/NLP/GenI/GeniParsers.hs dist/build/tmp15178/libgeni/NLP/GenI/GeniShow.hs dist/build/tmp15178/libgeni/NLP/GenI/Tags.hs dist/build/tmp15178/libgeni/NLP/GenI/Morphology.hs dist/build/tmp15178/libgeni/NLP/GenI/Polarity.hs dist/build/tmp15178/libgeni/NLP/GenI/Automaton.hs dist/build/tmp15178/libgeni/NLP/GenI/Statistics.hs dist/build/tmp15178/libgeni/NLP/GenI/Builder.hs dist/build/tmp15178/libgeni/NLP/GenI/Simple/SimpleBuilder.hs dist/build/tmp15178/libgeni/NLP/GenI/CkyEarley/CkyBuilder.hs dist/build/tmp15178/libgeni/NLP/GenI/Geni.hs dist/build/tmp15178/libgeni/NLP/GenI/Configuration.hs libgeni/NLP/GenI/CkyEarley/CkyBuilder.lhs:559:4: Couldn't match expected type `Maybe ([String], [String], GNode)' against inferred type `[([String], [String], GNode)]' In a stmt of a 'do' expression: (leftS, rightS, p) <- Map.lookup (gnname node) (ciRouting item) In the expression: do { (leftS, rightS, p) <- Map.lookup (gnname node) (ciRouting item); let mergePoints kids = ... combine par kids = ...; let leftMatches = map matches leftS rightMatches = map matches rightS ....; combinations allMatches >>= combine p } In the definition of `parentRule': parentRule item chart | ciComplete item = do { (leftS, rightS, p) <- Map.lookup (gnname node) (ciRouting item); let mergePoints kids = ... ....; let leftMatches = ... ....; .... } where node = ciNode item sourceOf = tidnum . ciSourceTree relevant c = (sourceOf c == sourceOf item) && ciComplete c && (ciSemantics c) .&. (ciSemantics item) == (ciInitialSem item) relChart = filter relevant chart ....