Re: [GHC] #5412: dataTypeConstrs gives unhelpful error message

#5412: dataTypeConstrs gives unhelpful error message -------------------------------------+------------------------------------ Reporter: NeilMitchell | Owner: klangner Type: bug | Status: new Priority: normal | Milestone: 7.6.2 Component: libraries/base | Version: 7.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by klangner): I can try :-) I can create the following message: ''Data.Data.dataTypeConstrs is not supported for Prelude.Int, as it is not an algebraic data type'' As you can see there is **Prelude.Int** not **Int**. This name is returned by **dataTypeName**. I don't know how to get the name without Prelude prefix. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/5412#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC