Skip to content

GHC panics when importing Array from Data.Array.Repa

I stumbled upon a GHC panic for some reason. The error message is below. The error disappears when I replace:

import           Data.Array.Repa     ((:.) (..), Array, DIM1, DIM2, U, Z (..))

with

import           Data.Array.Repa     ((:.) (..), DIM1, DIM2, U, Z (..))

and I've confirmed that it panics with:

import Data.Array.Repa (Array)

ghc: panic! (the 'impossible' happened)
  (GHC version 8.0.1 for x86_64-apple-darwin):
	filterImports/combine
  (Array,
   Array{Array, AByteString, ACursored, ADelayed, AForeignPtr, AInterleave, ASmall, APart, AUnboxed, AUndefined, AVector, cursoredExtent, loadCursor, makeCursor, shiftCursor},
   Nothing)
  (Array,
   Source{Source, Array, deepSeqArray, extent, index, linearIndex, unsafeIndex, unsafeLinearIndex},
   Nothing)
Edited by Ryan Scott
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information