Resolving dependencies... Configuring dlist-0.8.0.2... Configuring base-compat-0.9.1... Building dlist-0.8.0.2... Building base-compat-0.9.1... Configuring primitive-0.6.1.0... Installed dlist-0.8.0.2 Building primitive-0.6.1.0... Configuring mtl-2.2.1... Installed base-compat-0.9.1 Building mtl-2.2.1... Configuring stm-2.4.4.1... Installed primitive-0.6.1.0 Building stm-2.4.4.1... Configuring time-locale-compat-0.1.1.3... Installed mtl-2.2.1 Building time-locale-compat-0.1.1.3... Configuring transformers-compat-0.5.1.4... Installed time-locale-compat-0.1.1.3 Building transformers-compat-0.5.1.4... Configuring text-1.2.2.1... Installed stm-2.4.4.1 Building text-1.2.2.1... Installed transformers-compat-0.5.1.4 Configuring vector-0.11.0.0... Building vector-0.11.0.0... Installed text-1.2.2.1 Configuring tagged-0.8.5... Building tagged-0.8.5... Configuring exceptions-0.8.3... Installed tagged-0.8.5 Building exceptions-0.8.3... Configuring blaze-builder-0.4.0.2... Installed exceptions-0.8.3 Building blaze-builder-0.4.0.2... Configuring hashable-1.2.4.0... Installed vector-0.11.0.0 Building hashable-1.2.4.0... Configuring parsec-3.1.11... Installed blaze-builder-0.4.0.2 Building parsec-3.1.11... Installed hashable-1.2.4.0 Configuring unordered-containers-0.2.7.1... Building unordered-containers-0.2.7.1... Configuring blaze-markup-0.7.1.0... Installed parsec-3.1.11 Building blaze-markup-0.7.1.0... Configuring scientific-0.3.4.9... Installed unordered-containers-0.2.7.1 Installed blaze-markup-0.7.1.0 Configuring blaze-html-0.8.1.2... Building scientific-0.3.4.9... Building blaze-html-0.8.1.2... Installed scientific-0.3.4.9 Configuring attoparsec-0.13.1.0... Building attoparsec-0.13.1.0... Installed attoparsec-0.13.1.0 Configuring aeson-1.0.2.1... Building aeson-1.0.2.1... Installed blaze-html-0.8.1.2 Installed aeson-1.0.2.1 Configuring shakespeare-2.0.8.1... Building shakespeare-2.0.8.1... Failed to install shakespeare-2.0.8.1 Build log ( /home/builder/.cabal/logs/shakespeare-2.0.8.1.log ): cabal: Entering directory '/tmp/cabal-tmp-22348/shakespeare-2.0.8.1' Configuring shakespeare-2.0.8.1... Building shakespeare-2.0.8.1... Preprocessing library shakespeare-2.0.8.1... [ 1 of 18] Compiling Text.Shakespeare.Base ( Text/Shakespeare/Base.hs, dist/build/Text/Shakespeare/Base.o ) [ 2 of 18] Compiling Text.Shakespeare.I18N ( Text/Shakespeare/I18N.hs, dist/build/Text/Shakespeare/I18N.o ) Text/Shakespeare/I18N.hs:180:11: error: • Couldn't match expected type ‘Dec’ with actual type ‘[Dec] -> Dec’ • Probable cause: ‘InstanceD’ is applied to too few arguments In the expression: InstanceD [] (ConT ''RenderMessage `AppT` (ConT $ mkName master) `AppT` ConT mname) [FunD (mkName "renderMessage") $ c1 ++ c2 ++ [c3]] In the first argument of ‘if genType then ((DataD [] mname [] Nothing (map (toCon dt) sdef) []) :) else id’, namely ‘[InstanceD [] (ConT ''RenderMessage `AppT` (ConT $ mkName master) `AppT` ConT mname) [FunD (mkName "renderMessage") $ c1 ++ c2 ++ [...]]]’ In the second argument of ‘($)’, namely ‘(if genType then ((DataD [] mname [] Nothing (map (toCon dt) sdef) []) :) else id) [InstanceD [] (ConT ''RenderMessage `AppT` (ConT $ mkName master) `AppT` ConT mname) [FunD (mkName "renderMessage") $ c1 ++ c2 ++ [...]]]’ Text/Shakespeare/I18N.hs:181:13: error: • Couldn't match expected type ‘Maybe Overlap’ with actual type ‘[t0]’ • In the first argument of ‘InstanceD’, namely ‘[]’ In the expression: InstanceD [] (ConT ''RenderMessage `AppT` (ConT $ mkName master) `AppT` ConT mname) [FunD (mkName "renderMessage") $ c1 ++ c2 ++ [c3]] In the first argument of ‘if genType then ((DataD [] mname [] Nothing (map (toCon dt) sdef) []) :) else id’, namely ‘[InstanceD [] (ConT ''RenderMessage `AppT` (ConT $ mkName master) `AppT` ConT mname) [FunD (mkName "renderMessage") $ c1 ++ c2 ++ [...]]]’ Text/Shakespeare/I18N.hs:182:14: error: • Couldn't match type ‘Type’ with ‘[Pred]’ Expected type: Cxt Actual type: Type • In the second argument of ‘InstanceD’, namely ‘(ConT ''RenderMessage `AppT` (ConT $ mkName master) `AppT` ConT mname)’ In the expression: InstanceD [] (ConT ''RenderMessage `AppT` (ConT $ mkName master) `AppT` ConT mname) [FunD (mkName "renderMessage") $ c1 ++ c2 ++ [c3]] In the first argument of ‘if genType then ((DataD [] mname [] Nothing (map (toCon dt) sdef) []) :) else id’, namely ‘[InstanceD [] (ConT ''RenderMessage `AppT` (ConT $ mkName master) `AppT` ConT mname) [FunD (mkName "renderMessage") $ c1 ++ c2 ++ [...]]]’ Text/Shakespeare/I18N.hs:183:13: error: • Couldn't match expected type ‘Type’ with actual type ‘[Dec]’ • In the third argument of ‘InstanceD’, namely ‘[FunD (mkName "renderMessage") $ c1 ++ c2 ++ [c3]]’ In the expression: InstanceD [] (ConT ''RenderMessage `AppT` (ConT $ mkName master) `AppT` ConT mname) [FunD (mkName "renderMessage") $ c1 ++ c2 ++ [c3]] In the first argument of ‘if genType then ((DataD [] mname [] Nothing (map (toCon dt) sdef) []) :) else id’, namely ‘[InstanceD [] (ConT ''RenderMessage `AppT` (ConT $ mkName master) `AppT` ConT mname) [FunD (mkName "renderMessage") $ c1 ++ c2 ++ [...]]]’ cabal: Leaving directory '/tmp/cabal-tmp-22348/shakespeare-2.0.8.1' cabal: Error: some packages failed to install: shakespeare-2.0.8.1 failed during the building phase. The exception was: ExitFailure 1