Resolving dependencies... Configuring mtl-2.2.1... Configuring integer-logarithms-1.0.1... Building mtl-2.2.1... Building integer-logarithms-1.0.1... Installed integer-logarithms-1.0.1 Configuring random-1.1... Building random-1.1... Configuring primitive-0.6.2.0... Installed mtl-2.2.1 Building primitive-0.6.2.0... Configuring safe-0.3.14... Installed random-1.1 Building safe-0.3.14... Configuring stm-2.4.4.1... Installed safe-0.3.14 Building stm-2.4.4.1... Configuring syb-0.7... Installed primitive-0.6.2.0 Building syb-0.7... Configuring transformers-compat-0.5.1.4... Installed stm-2.4.4.1 Building transformers-compat-0.5.1.4... Configuring text-1.2.2.1... Installed transformers-compat-0.5.1.4 Building text-1.2.2.1... Installed syb-0.7 Configuring tf-random-0.5... Building tf-random-0.5... Configuring exceptions-0.8.3... Installed tf-random-0.5 Building exceptions-0.8.3... Configuring vector-0.12.0.0... Installed exceptions-0.8.3 Building vector-0.12.0.0... Installed text-1.2.2.1 Configuring QuickCheck-2.9.2... Building QuickCheck-2.9.2... Installed QuickCheck-2.9.2 Configuring hashable-1.2.5.0... Building hashable-1.2.5.0... Configuring parsec-3.1.11... Installed vector-0.12.0.0 Building parsec-3.1.11... Installed hashable-1.2.5.0 Configuring scientific-0.3.4.10... Building scientific-0.3.4.10... Configuring dequeue-0.1.12... Installed parsec-3.1.11 Building dequeue-0.1.12... Configuring unordered-containers-0.2.7.2... Installed scientific-0.3.4.10 Building unordered-containers-0.2.7.2... Installed dequeue-0.1.12 Configuring json-0.9.1... Building json-0.9.1... Configuring megaparsec-5.2.0... Installed unordered-containers-0.2.7.2 Installed json-0.9.1 Building megaparsec-5.2.0... Installed megaparsec-5.2.0 Configuring elsa-0.2.0.0... Building elsa-0.2.0.0... Failed to install elsa-0.2.0.0 Build log ( /home/builder/.cabal/logs/elsa-0.2.0.0.log ): cabal: Entering directory '/tmp/cabal-tmp-25984/elsa-0.2.0.0' Configuring elsa-0.2.0.0... Building elsa-0.2.0.0... Preprocessing library elsa-0.2.0.0... [1 of 7] Compiling Language.Elsa.Utils ( src/Language/Elsa/Utils.hs, dist/build/Language/Elsa/Utils.o ) [2 of 7] Compiling Language.Elsa.UX ( src/Language/Elsa/UX.hs, dist/build/Language/Elsa/UX.o ) src/Language/Elsa/UX.hs:94:20: error: • Couldn't match expected type ‘Int’ with actual type ‘Pos’ • In the expression: l1 s In the expression: (f s, l1 s, c1 s, l2 s, c2 s) In an equation for ‘spanInfo’: spanInfo s = (f s, l1 s, c1 s, l2 s, c2 s) where f = spanFile l1 = sourceLine . ssBegin c1 = sourceColumn . ssBegin l2 = sourceLine . ssEnd .... src/Language/Elsa/UX.hs:94:26: error: • Couldn't match expected type ‘Int’ with actual type ‘Pos’ • In the expression: c1 s In the expression: (f s, l1 s, c1 s, l2 s, c2 s) In an equation for ‘spanInfo’: spanInfo s = (f s, l1 s, c1 s, l2 s, c2 s) where f = spanFile l1 = sourceLine . ssBegin c1 = sourceColumn . ssBegin l2 = sourceLine . ssEnd .... src/Language/Elsa/UX.hs:94:32: error: • Couldn't match expected type ‘Int’ with actual type ‘Pos’ • In the expression: l2 s In the expression: (f s, l1 s, c1 s, l2 s, c2 s) In an equation for ‘spanInfo’: spanInfo s = (f s, l1 s, c1 s, l2 s, c2 s) where f = spanFile l1 = sourceLine . ssBegin c1 = sourceColumn . ssBegin l2 = sourceLine . ssEnd .... src/Language/Elsa/UX.hs:94:38: error: • Couldn't match expected type ‘Int’ with actual type ‘Pos’ • In the expression: c2 s In the expression: (f s, l1 s, c1 s, l2 s, c2 s) In an equation for ‘spanInfo’: spanInfo s = (f s, l1 s, c1 s, l2 s, c2 s) where f = spanFile l1 = sourceLine . ssBegin c1 = sourceColumn . ssBegin l2 = sourceLine . ssEnd .... cabal: Leaving directory '/tmp/cabal-tmp-25984/elsa-0.2.0.0' cabal: Error: some packages failed to install: elsa-0.2.0.0 failed during the building phase. The exception was: ExitFailure 1