Difference between revisions of "GHC/Type system"

From HaskellWiki
< GHC
Jump to: navigation, search
(fix link to users guide)
(fix link to OverlappingInstances)
 
Line 8: Line 8:
 
* '''[[GHC/Stand-alone deriving declarations|"Stand-alone deriving" declarations]]'''
 
* '''[[GHC/Stand-alone deriving declarations|"Stand-alone deriving" declarations]]'''
 
* '''[[GHC/TypeSigsAndAmbiguity|Type signatures and ambiguity]]'''
 
* '''[[GHC/TypeSigsAndAmbiguity|Type signatures and ambiguity]]'''
* '''Overlapping instances'''. GHC supports overlapping instances, with carefully specified rules. Make sure you read the [https://downloads.haskell.org/ghc/latest/docs/html/users_guide/glasgow_exts.html#instance-declarations relevant sections of the user manual]. Here is an application note about [[GHC/AdvancedOverlap|advanced use of overlapping instances]], combined with functional dependencies.
+
* '''Overlapping instances'''. GHC supports overlapping instances, with carefully specified rules. Make sure you read the [http://downloads.haskell.org/~ghc/latest/docs/html/users_guide/exts/instances.html#overlapping-instances relevant sections of the user manual]. Here is an application note about [[GHC/AdvancedOverlap|advanced use of overlapping instances]], combined with functional dependencies.
 
* '''[[GHC/SuperClass|Super-Class Constraints: Type Families, Type Equalities, FunDep, Overlaps]]'''
 
* '''[[GHC/SuperClass|Super-Class Constraints: Type Families, Type Equalities, FunDep, Overlaps]]'''
 
* '''[[GHC/Coercible|Safe coercions using Coercible]]'''
 
* '''[[GHC/Coercible|Safe coercions using Coercible]]'''

Latest revision as of 20:32, 23 July 2021

Type system extensions in GHC

GHC comes with a rather large collection of type-system extensions (beyond Haskell 98). The GHC Users Guide has a section on Language Extensions. But this page is a place to record user-oriented observations, notes, and suggestions on how to use them.