
#9898: Wanted: higher-order type-level programming -------------------------------------+------------------------------------- Reporter: erisco | Owner: Type: feature | Status: new request | Milestone: Priority: normal | Version: 7.8.3 Component: Compiler | Keywords: (Type checker) | Architecture: x86_64 (amd64) Resolution: | Difficulty: Unknown Operating System: Windows | Blocked By: Type of failure: GHC | Related Tickets: rejects valid program | Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by goldfire): Though I'm all for fixing this so that it's possible in GHC, you may also want to check out the `singletons` package, which goes to lengths to emulate this feature. See also the related paper [http://www.cis.upenn.edu/~eir/papers/2014/promotion/promotion.pdf here]. One of these years, I hope to push for adoption of some of the ideas from that paper into GHC proper -- without defunctionalization, for sure. See sections 7.2 and 7.5. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9898#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler