#7540: Panic on type inference with vectorised parallel arrays
-------------------------------+--------------------------------------------
Reporter:  tinctorius          |          Owner:                  
    Type:  bug                 |         Status:  new             
Priority:  normal              |      Component:  Compiler        
 Version:  7.6.1               |       Keywords:                  
      Os:  Unknown/Multiple    |   Architecture:  Unknown/Multiple
 Failure:  Compile-time crash  |      Blockedby:                  
Blocking:                      |        Related:                  
-------------------------------+--------------------------------------------

Comment(by tinctorius):

 An even simpler example:
 {{{
 {-# LANGUAGE CPP #-}
 {-# LANGUAGE NoImplicitPrelude #-}
 {-# LANGUAGE ParallelArrays #-}
 module Y where

 import Data.Array.Parallel

 #ifndef BUG
 func :: Bool -> [:[:a:]:]
 #endif
 func True = [:[::]:]
 func False = func True
 }}}

 Taking `[:[::]:]` out to its own variable doesn't change a thing, unless
 it's given a monomorphic type signature.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7540#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to