Resolving dependencies... Configuring cereal-0.5.4.0... Configuring entropy-0.3.7... Building cereal-0.5.4.0... Building entropy-0.3.7... Installed entropy-0.3.7 Configuring mtl-2.2.1... Configuring network-2.6.3.1... Installed cereal-0.5.4.0 Building mtl-2.2.1... Building network-2.6.3.1... Configuring old-locale-1.0.0.7... Installed mtl-2.2.1 Building old-locale-1.0.0.7... Configuring random-1.1... Installed old-locale-1.0.0.7 Building random-1.1... Configuring stm-2.4.4.1... Installed random-1.1 Building stm-2.4.4.1... Configuring primitive-0.6.1.0... Installed network-2.6.3.1 Building primitive-0.6.1.0... Configuring text-1.2.2.1... Installed stm-2.4.4.1 Building text-1.2.2.1... Configuring transformers-compat-0.5.1.4... Installed primitive-0.6.1.0 Building transformers-compat-0.5.1.4... Installed transformers-compat-0.5.1.4 Configuring vector-0.11.0.0... Building vector-0.11.0.0... Configuring tagged-0.8.5... Installed text-1.2.2.1 Building tagged-0.8.5... Installed tagged-0.8.5 Configuring hashable-1.2.4.0... Building hashable-1.2.4.0... Configuring parsec-3.1.11... Installed hashable-1.2.4.0 Building parsec-3.1.11... Configuring crypto-api-0.13.2... Installed vector-0.11.0.0 Building crypto-api-0.13.2... Installed parsec-3.1.11 Configuring unordered-containers-0.2.7.1... Building unordered-containers-0.2.7.1... Installed crypto-api-0.13.2 Configuring pureMD5-2.1.3... Building pureMD5-2.1.3... Installed unordered-containers-0.2.7.1 Installed pureMD5-2.1.3 Downloading EtaMOO-0.1.0.0... Configuring EtaMOO-0.1.0.0... Building EtaMOO-0.1.0.0... Failed to install EtaMOO-0.1.0.0 Build log ( /home/builder/.cabal/logs/EtaMOO-0.1.0.0.log ): cabal: Entering directory '/tmp/cabal-tmp-17024/EtaMOO-0.1.0.0' Configuring EtaMOO-0.1.0.0... Building EtaMOO-0.1.0.0... Preprocessing executable 'etamoo' for EtaMOO-0.1.0.0... [ 1 of 30] Compiling Paths_EtaMOO ( dist/build/autogen/Paths_EtaMOO.hs, dist/build/etamoo/etamoo-tmp/Paths_EtaMOO.o ) [ 2 of 30] Compiling MOO.Version ( src/MOO/Version.hs, dist/build/etamoo/etamoo-tmp/MOO/Version.o ) [ 3 of 30] Compiling MOO.Verb[boot] ( src/MOO/Verb.hs-boot, dist/build/etamoo/etamoo-tmp/MOO/Verb.o-boot ) [ 4 of 30] Compiling MOO.Types ( src/MOO/Types.hs, dist/build/etamoo/etamoo-tmp/MOO/Types.o ) [ 5 of 30] Compiling MOO.Object[boot] ( src/MOO/Object.hs-boot, dist/build/etamoo/etamoo-tmp/MOO/Object.o-boot ) [ 6 of 30] Compiling MOO.Command[boot] ( src/MOO/Command.hs-boot, dist/build/etamoo/etamoo-tmp/MOO/Command.o-boot ) [ 7 of 30] Compiling MOO.Task[boot] ( src/MOO/Task.hs-boot, dist/build/etamoo/etamoo-tmp/MOO/Task.o-boot ) [ 8 of 30] Compiling MOO.Database[boot] ( src/MOO/Database.hs-boot, dist/build/etamoo/etamoo-tmp/MOO/Database.o-boot ) [ 9 of 30] Compiling MOO.Network[boot] ( src/MOO/Network.hs-boot, dist/build/etamoo/etamoo-tmp/MOO/Network.o-boot ) [10 of 30] Compiling MOO.Builtins.Match ( dist/build/etamoo/etamoo-tmp/MOO/Builtins/Match.hs, dist/build/etamoo/etamoo-tmp/MOO/Builtins/Match.o ) src/MOO/Builtins/Match.hsc:101:9: error: • Ambiguous type variable ‘t0’ arising from a use of ‘elem’ prevents the constraint ‘(Foldable t0)’ from being solved. Probable fix: use a type annotation to specify what ‘t0’ should be. These potential instances exist: instance Foldable (Either a) -- Defined in ‘Data.Foldable’ instance Foldable Maybe -- Defined in ‘Data.Foldable’ instance Foldable ((,) a) -- Defined in ‘Data.Foldable’ ...plus one other ...plus 51 instances involving out-of-scope types (use -fprint-potential-instances to see them all) • In the expression: c `elem` "\\|(){" In a stmt of a pattern guard for an equation for ‘rewrite'’: c `elem` "\\|(){" In an equation for ‘rewrite'’: rewrite' StateBase (c : cs) | c `elem` "\\|(){" = "\\" : [c] : rewrite' StateBase cs | otherwise = [c] : rewrite' StateBase cs src/MOO/Builtins/Match.hsc:101:18: error: • Ambiguous type variable ‘t0’ arising from the literal ‘"\\|(){"’ prevents the constraint ‘(Data.String.IsString (t0 Char))’ from being solved. Probable fix: use a type annotation to specify what ‘t0’ should be. These potential instances exist: instance a ~ Char => Data.String.IsString [a] -- Defined in ‘Data.String’ ...plus three instances involving out-of-scope types (use -fprint-potential-instances to see them all) • In the second argument of ‘elem’, namely ‘"\\|(){"’ In the expression: c `elem` "\\|(){" In a stmt of a pattern guard for an equation for ‘rewrite'’: c `elem` "\\|(){" src/MOO/Builtins/Match.hsc:106:9: error: • Ambiguous type variable ‘t1’ arising from a use of ‘elem’ prevents the constraint ‘(Foldable t1)’ from being solved. Probable fix: use a type annotation to specify what ‘t1’ should be. These potential instances exist: instance Foldable (Either a) -- Defined in ‘Data.Foldable’ instance Foldable Maybe -- Defined in ‘Data.Foldable’ instance Foldable ((,) a) -- Defined in ‘Data.Foldable’ ...plus one other ...plus 51 instances involving out-of-scope types (use -fprint-potential-instances to see them all) • In the expression: c `elem` "\\[" In a stmt of a pattern guard for an equation for ‘rewrite'’: c `elem` "\\[" In an equation for ‘rewrite'’: rewrite' StateCsetInit (c : cs) | c `elem` "\\[" = "\\" : [c] : rewrite' StateCset cs | otherwise = [c] : rewrite' StateCset cs src/MOO/Builtins/Match.hsc:106:18: error: • Ambiguous type variable ‘t1’ arising from the literal ‘"\\["’ prevents the constraint ‘(Data.String.IsString (t1 Char))’ from being solved. Probable fix: use a type annotation to specify what ‘t1’ should be. These potential instances exist: instance a ~ Char => Data.String.IsString [a] -- Defined in ‘Data.String’ ...plus three instances involving out-of-scope types (use -fprint-potential-instances to see them all) • In the second argument of ‘elem’, namely ‘"\\["’ In the expression: c `elem` "\\[" In a stmt of a pattern guard for an equation for ‘rewrite'’: c `elem` "\\[" src/MOO/Builtins/Match.hsc:110:9: error: • Ambiguous type variable ‘t2’ arising from a use of ‘elem’ prevents the constraint ‘(Foldable t2)’ from being solved. Probable fix: use a type annotation to specify what ‘t2’ should be. These potential instances exist: instance Foldable (Either a) -- Defined in ‘Data.Foldable’ instance Foldable Maybe -- Defined in ‘Data.Foldable’ instance Foldable ((,) a) -- Defined in ‘Data.Foldable’ ...plus one other ...plus 51 instances involving out-of-scope types (use -fprint-potential-instances to see them all) • In the expression: c `elem` "\\[" In a stmt of a pattern guard for an equation for ‘rewrite'’: c `elem` "\\[" In an equation for ‘rewrite'’: rewrite' StateCsetInit2 (c : cs) | c `elem` "\\[" = "\\" : [c] : rewrite' StateCset cs | otherwise = [c] : rewrite' StateCset cs src/MOO/Builtins/Match.hsc:110:18: error: • Ambiguous type variable ‘t2’ arising from the literal ‘"\\["’ prevents the constraint ‘(Data.String.IsString (t2 Char))’ from being solved. Probable fix: use a type annotation to specify what ‘t2’ should be. These potential instances exist: instance a ~ Char => Data.String.IsString [a] -- Defined in ‘Data.String’ ...plus three instances involving out-of-scope types (use -fprint-potential-instances to see them all) • In the second argument of ‘elem’, namely ‘"\\["’ In the expression: c `elem` "\\[" In a stmt of a pattern guard for an equation for ‘rewrite'’: c `elem` "\\[" src/MOO/Builtins/Match.hsc:115:9: error: • Ambiguous type variable ‘t3’ arising from a use of ‘elem’ prevents the constraint ‘(Foldable t3)’ from being solved. Probable fix: use a type annotation to specify what ‘t3’ should be. These potential instances exist: instance Foldable (Either a) -- Defined in ‘Data.Foldable’ instance Foldable Maybe -- Defined in ‘Data.Foldable’ instance Foldable ((,) a) -- Defined in ‘Data.Foldable’ ...plus one other ...plus 51 instances involving out-of-scope types (use -fprint-potential-instances to see them all) • In the expression: c `elem` "\\[" In a stmt of a pattern guard for an equation for ‘rewrite'’: c `elem` "\\[" In an equation for ‘rewrite'’: rewrite' StateCset (c : cs) | c `elem` "\\[" = "\\" : [c] : rewrite' StateCset cs | otherwise = [c] : rewrite' StateCset cs src/MOO/Builtins/Match.hsc:115:18: error: • Ambiguous type variable ‘t3’ arising from the literal ‘"\\["’ prevents the constraint ‘(Data.String.IsString (t3 Char))’ from being solved. Probable fix: use a type annotation to specify what ‘t3’ should be. These potential instances exist: instance a ~ Char => Data.String.IsString [a] -- Defined in ‘Data.String’ ...plus three instances involving out-of-scope types (use -fprint-potential-instances to see them all) • In the second argument of ‘elem’, namely ‘"\\["’ In the expression: c `elem` "\\[" In a stmt of a pattern guard for an equation for ‘rewrite'’: c `elem` "\\[" src/MOO/Builtins/Match.hsc:132:9: error: • Ambiguous type variable ‘t4’ arising from a use of ‘elem’ prevents the constraint ‘(Foldable t4)’ from being solved. Probable fix: use a type annotation to specify what ‘t4’ should be. These potential instances exist: instance Foldable (Either a) -- Defined in ‘Data.Foldable’ instance Foldable Maybe -- Defined in ‘Data.Foldable’ instance Foldable ((,) a) -- Defined in ‘Data.Foldable’ ...plus one other ...plus 51 instances involving out-of-scope types (use -fprint-potential-instances to see them all) • In the expression: c `elem` "\\^$.[?*+{" In a stmt of a pattern guard for an equation for ‘rewrite'’: c `elem` "\\^$.[?*+{" In an equation for ‘rewrite'’: rewrite' StateEsc (c : cs) | c `elem` ['1' .. '9'] = "\\" : [c] : "(?#)" : rewrite' StateBase cs | c `elem` "\\^$.[?*+{" = "\\" : [c] : rewrite' StateBase cs | otherwise = [c] : rewrite' StateBase cs src/MOO/Builtins/Match.hsc:132:18: error: • Ambiguous type variable ‘t4’ arising from the literal ‘"\\^$.[?*+{"’ prevents the constraint ‘(Data.String.IsString (t4 Char))’ from being solved. Probable fix: use a type annotation to specify what ‘t4’ should be. These potential instances exist: instance a ~ Char => Data.String.IsString [a] -- Defined in ‘Data.String’ ...plus three instances involving out-of-scope types (use -fprint-potential-instances to see them all) • In the second argument of ‘elem’, namely ‘"\\^$.[?*+{"’ In the expression: c `elem` "\\^$.[?*+{" In a stmt of a pattern guard for an equation for ‘rewrite'’: c `elem` "\\^$.[?*+{" cabal: Leaving directory '/tmp/cabal-tmp-17024/EtaMOO-0.1.0.0' cabal: Error: some packages failed to install: EtaMOO-0.1.0.0 failed during the building phase. The exception was: ExitFailure 1