Resolving dependencies... Configuring freq-0.1.0.2... Building freq-0.1.0.2... Failed to install freq-0.1.0.2 Build log ( /home/builder/.cabal/logs/ghc-8.2.2/freq-0.1.0.2-61GlyPG2iVPI0hDukcRsRZ.log ): cabal: Entering directory '/tmp/cabal-tmp-13562/freq-0.1.0.2' Configuring freq-0.1.0.2... Preprocessing library for freq-0.1.0.2.. Building library for freq-0.1.0.2.. [1 of 2] Compiling Freq.Internal ( src/Freq/Internal.hs, dist/build/Freq/Internal.o ) src/Freq/Internal.hs:254:53: error: Not in scope: ‘PM.sizeOf’ Perhaps you meant ‘PM.sizeOf#’ (imported from Data.Primitive.Types) Neither ‘Data.Primitive.ByteArray’ nor ‘Data.Primitive.Types’ exports ‘sizeOf’. | 254 | !elemSz = P.div (PM.sizeofByteArray arr) (PM.sizeOf (undefined :: Double)) | ^^^^^^^^^ src/Freq/Internal.hs:285:39: error: Not in scope: ‘PM.sizeOf’ Perhaps you meant ‘PM.sizeOf#’ (imported from Data.Primitive.Types) Neither ‘Data.Primitive.ByteArray’ nor ‘Data.Primitive.Types’ exports ‘sizeOf’. | 285 | square <- PM.newByteArray (szSq * PM.sizeOf (undefined :: Double)) | ^^^^^^^^^ cabal: Leaving directory '/tmp/cabal-tmp-13562/freq-0.1.0.2' cabal: Error: some packages failed to install: freq-0.1.0.2-61GlyPG2iVPI0hDukcRsRZ failed during the building phase. The exception was: ExitFailure 1