Skip to content

Beginner-targeted language extension

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 [].

Trac metadata
Trac field Value
Version 7.10.2
Type FeatureRequest
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information