[GHC] #11957: DataKinds: lifting constructors whose identifier is a single character

#11957: DataKinds: lifting constructors whose identifier is a single character -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- {{{ ghci> data I' = I' ghci> :kind I' I' :: * ghci> :kind 'I' <interactive>:1:1: error: parse error on input ‘'’ }}} there doesn't seem to be a way to get `'I' :: I'`? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11957 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11957: DataKinds: lifting constructors whose identifier is a single character -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by tswilkinson): {{{ ghci> data I' = I' ghci> :kind I' I' :: * ghci> :kind ' I' ' I' :: I' }}} This is mentioned in the 8.0.1-rc3 user's guide, in section 9.10.3. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11957#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11957: DataKinds: lifting constructors whose identifier is a single character -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by Iceland_jack): Thank you, that's unintuitive. Could the error message reflect this syntax? A more confusing error message is: {{{ ghci> data I' = I' ghci> ' I' Ghci10.I'*** Exception: <interactive>:273:11-43: Irrefutable pattern failed for pattern (char :: Char, rest') : _ ghci> }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11957#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC