
#15322: `KnownNat` does not imply `Typeable` any more when used with plugin -------------------------------------+------------------------------------- Reporter: chshersh | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.4.3 Resolution: | Keywords: | typeable,knownnat Operating System: Unknown/Multiple | Architecture: Type of failure: GHC rejects | Unknown/Multiple valid program | Test Case: Blocked By: | Blocking: Related Tickets: #10348 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by goldfire): This seems unfortunate to me. I wonder if it would be better to have {{{#!hs getNat :: TypeRep (n :: Nat) -> Natural }}} and then dispense with `KnownNat`. If I were guessing which were primitive between `KnownNat` and `Typeable`, I would guess `Typeable`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15322#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler