[GHC] #15183: Expose the SNat type and the natSing method
GHC
ghc-devs at haskell.org
Fri May 25 21:21:13 UTC 2018
#15183: Expose the SNat type and the natSing method
-------------------------------------+-------------------------------------
Reporter: dfeuer | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: 8.6.1
Component: Core Libraries | Version: 8.2.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 dfeuer):
goldfire, there are already two singletons for these, but one is
uncomfortably buried where we need `unsafeCoerce` to get at it. Since we
have built-in support for `Nat`, `Symbol`, `KnownNat`, and `KnownSymbol`,
I don't really see the slippery slope. `singletons` should be able to use
a newtype instance around the one in `base`.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15183#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list