[GHC] #8531: ghc crash from kinds

#8531: ghc crash from kinds -----------------------------------+--------------------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: lowest | Milestone: Component: Compiler | Version: 7.6.3 Keywords: | Operating System: MacOS X Architecture: | Type of failure: Compile-time crash Unknown/Multiple | Test Case: Difficulty: Unknown | Blocking: Blocked By: | Related Tickets: | -----------------------------------+--------------------------------------- When I run this in ghci: {{{ let x :: MaybeT IO (Ptr Int); x = (lift newCString "hi") >>= nullableToMaybeT }}} I get this output: {{{ Couldn't match kind `* -> *' with `*' Expected type: [Char] -> MaybeT IO (Ptr Int) Actual type: [Char] -> MaybeT IO (Ptr Int) Kind incompatibility when matching types: [Char] :: * -> * [Char] :: * The function `lift'ghc: panic! (the 'impossible' happened) (GHC version 7.6.3 for x86_64-apple-darwin): kindFunResult <<details unavailable>> }}} where nullToMaybeT is: {{{ nullableToMaybeT :: Monad m => Ptr a -> MaybeT m (Ptr a) nullableToMaybeT ptr = do case (ptr == nullPtr) of True -> (MaybeT . return) Nothing False -> return ptr }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8531 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8531: ghc crash from kinds ---------------------------------------+----------------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: | Keywords: Operating System: MacOS X | Architecture: Type of failure: Compile-time crash | Unknown/Multiple Test Case: | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: ---------------------------------------+----------------------------------- Changes (by guest): * priority: lowest => normal -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8531#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8531: ghc crash from kinds ---------------------------------------+----------------------------------- Reporter: guest | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: duplicate | Keywords: Operating System: MacOS X | Architecture: Type of failure: Compile-time crash | Unknown/Multiple Test Case: | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: ---------------------------------------+----------------------------------- Changes (by goldfire): * status: new => closed * resolution: => duplicate Comment: This is fixed in HEAD and will be fixed in 7.8. Thanks for reporting! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8531#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC