Repository navigation
Description
The GHC User's Guide has a section listing where GHC diverges from Haskell 2010 (§16.1). That's more or less the scope of this project, so here's a checklist mapping each entry to an issue or PR, or saying why I think nothing needs doing. Corrections welcome, especially on the "no change" ones.
16.1.1.1 Lexical syntax
-
M.<reservedop>is a single lexeme: Fix qualified identifier splitting of reserved ids / reserved ops #80 -
forallis a keyword: Turnforallinto a keyword #2 - prefix
!and~, tight@: Specify syntax of whitespace around operators #16 - ASCII-only decimal literals: Disallow Unicode in numeric literals. #3
- Unicode letters in identifiers: Change set of permissible Unicode letters in identifiers #4
- redundant parentheses in
funlhs: Change definition of BNF productionfunlhsto allow additional parentheses #5
16.1.1.2 Context-free syntax: both entries only apply to Haskell 98 mode. Nothing to do.
16.1.1.3 Expressions and patterns: GHC eta-expands and makes some programs more defined; -fpedantic-bottoms gives the report semantics back. I don't think the report should change.
16.1.1.4 Failable patterns: #56, #74 (MonadFail itself in #8, #79)
16.1.1.5 Recursive binding groups: I think this is already Haskell 2010. §4.5.1 ignores references to variables with a type signature, so the "identical contexts" rule in §4.5.2 only bites for variables bound by the same pattern binding, which is also what GHC does. The guide is comparing against Haskell 98. (The guide's example compiles with GHC 9.12.2 and -XHaskell2010.)
16.1.1.6 -main-is: a compiler flag, no change.
16.1.1.7 hs-boot files: #52
16.1.1.8 Numbers, basic types and built-in classes
-
Numsuperclasses: Changes to theNumtypeclass #7, Drop superclasses of Num #78 -
Bitssuperclass: Changes to theBitstype class #6 -
ReadhasreadPrecandreadListPrec: no issue yet.ReadPrecsits on top ofReadP, which needsRankNTypes, so I'm not sure the report can mention it without going out of scope. -
Applicativesuperclass ofMonad: Changes to theFunctorandMonadhierarchy #8, add Applicative and MonadFail to monad hierarchy #79 - extra
Functor/Monadinstances: Additional typeclass instances that are not part of the report #9 -
arraydoesn't check for duplicate indices: belongs with RestoreData.Arrayspecification #40?
16.1.1.9 Prelude: #92 (splitAt, derived Show for records, read of hex/octal, isAlpha, hGetContents)
16.1.1.10 FFI: no hs_init() after hs_exit() (GHC #13693). A GHC limitation, I'd leave the report alone.
16.1.2 Undefined and implementation-specific behaviour: tuple sizes are in #57. maxBound :: Char, Int width and overflow are implementation-defined anyway.
Activity
BinderDavid commentedon Oct 16, 2026
W.r.t. 16.1.1.2 and 16.1.1.5: Once we are finished with this revised report I am going to propose to GHC to drop all comparisons to Haskell 98 in the user guide and only describe GHC's behaviour as compared to the revised report. I think those comparisons to Haskell 98 are more confusing than helpful, especially those that are related to RelaxedPolyRec (section 6.1.1.5). There are already very few people who know the precise difference between 98 and 2010, and no one uses Haskell 98 for writing code anyway.