[GHC] #10776: DataKinds promotion of String -> Symbol and Natural -> Nat
GHC
ghc-devs at haskell.org
Thu Aug 27 19:47:05 UTC 2015
#10776: DataKinds promotion of String -> Symbol and Natural -> Nat
-------------------------------------+-------------------------------------
Reporter: htebalaka | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Compiler (Type | Version: 7.10.2
checker) |
Resolution: | Keywords: DataKinds
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by goldfire):
Combining `Natural` and `Nat` seems straightforward. But `Symbol` and
`String` are different: the former is not a list of characters. `Symbol`
is much more like a promoted `Text` than a promoted `String`. And we might
want the kind `String` to mean a type-level list of type-level characters
someday.
Even better than making progress on these small issues is to step back and
come up with a plan for type-level literals of all stripes (floating-point
numbers, characters, a promoted `Num` class of some sort?). I'm worried
that small forays into this space will dig us into a local minimum from
which we can't escape.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10776#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list