[GHC] #10963: Beginner-targeted language extension

GHC ghc-devs at haskell.org
Tue Oct 13 03:58:36 UTC 2015


#10963: Beginner-targeted language extension
-------------------------------------+-------------------------------------
           Reporter:  kanetw         |             Owner:
               Type:  feature        |            Status:  new
  request                            |
           Priority:  normal         |         Milestone:
          Component:  Compiler       |           Version:  7.10.2
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 FMP significantly complicated type signatures such as `length :: Foldable
 t => t a -> Int`, which makes teaching Haskell more difficult.

 I propose a language extension `-XBeginner` which instructs GHC(i) to
 specialize `Foldable` and `Traversable` to `[]` when possible and in case
 of an ambiguous instance, default those to `[]`.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10963>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list