Resolving dependencies... Configuring mtl-2.2.1... Configuring integer-logarithms-1.0.1... Building integer-logarithms-1.0.1... Building mtl-2.2.1... Installed integer-logarithms-1.0.1 Configuring primitive-0.6.2.0... Building primitive-0.6.2.0... Configuring random-1.1... Installed mtl-2.2.1 Building random-1.1... Configuring stm-2.4.4.1... Installed random-1.1 Building stm-2.4.4.1... Configuring safe-0.3.14... Installed primitive-0.6.2.0 Building safe-0.3.14... Configuring syb-0.7... Installed stm-2.4.4.1 Building syb-0.7... Configuring text-1.2.2.1... Installed safe-0.3.14 Building text-1.2.2.1... Configuring transformers-compat-0.5.1.4... Installed syb-0.7 Building transformers-compat-0.5.1.4... Installed transformers-compat-0.5.1.4 Configuring tf-random-0.5... Building tf-random-0.5... Installed tf-random-0.5 Configuring vector-0.12.0.0... Building vector-0.12.0.0... Configuring exceptions-0.8.3... Installed text-1.2.2.1 Building exceptions-0.8.3... Configuring QuickCheck-2.9.2... Installed exceptions-0.8.3 Building QuickCheck-2.9.2... Installed vector-0.12.0.0 Configuring hashable-1.2.5.0... Building hashable-1.2.5.0... Configuring parsec-3.1.11... Installed QuickCheck-2.9.2 Configuring dequeue-0.1.12... Installed hashable-1.2.5.0 Building parsec-3.1.11... Building dequeue-0.1.12... Installed dequeue-0.1.12 Configuring unordered-containers-0.2.7.2... Building unordered-containers-0.2.7.2... Configuring scientific-0.3.4.10... Installed parsec-3.1.11 Building scientific-0.3.4.10... Installed unordered-containers-0.2.7.2 Configuring json-0.9.1... Installed scientific-0.3.4.10 Configuring megaparsec-5.2.0... Building json-0.9.1... Building megaparsec-5.2.0... Installed json-0.9.1 Installed megaparsec-5.2.0 Configuring elsa-0.1.0.1... Building elsa-0.1.0.1... Failed to install elsa-0.1.0.1 Build log ( /home/builder/.cabal/logs/elsa-0.1.0.1.log ): cabal: Entering directory '/tmp/cabal-tmp-26182/elsa-0.1.0.1' Configuring elsa-0.1.0.1... Building elsa-0.1.0.1... Preprocessing library elsa-0.1.0.1... [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-26182/elsa-0.1.0.1' cabal: Error: some packages failed to install: elsa-0.1.0.1 failed during the building phase. The exception was: ExitFailure 1