
#14061: reflection -------------------------------------+------------------------------------- Reporter: zaoqi | Owner: (none) Type: feature request | Status: new Priority: normal | Milestone: Component: Runtime System | Version: 8.0.2 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 zaoqi): Replying to [comment:9 AntC]:
Replying to [comment:8 zaoqi]:
我需要能判断是否有`instance Eq a`,在运行时。
Google translate: I need to be able to judge whether there is `instance Eq a` at run time
No: '''You''' must explain why you refuse to change the definition of `Dyn`.
Google translate: 否:你必須解釋為什麼你拒絕改變 `Dyn` 的定義。 instance Show Dyn
instance Enum Dyn instance Num Dyn ...... -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14061#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler