|(21 intermediate revisions by 9 users not shown)|
|Line 1:||Line 1:|
=Type system extensions in GHC
GHC comes with a rather
GHC comes with a rather collection of type-system extensions (beyond Haskell 98). They are all documented in the [http://www.haskell.org/ghc/docs/latest/html/users_guide/-.html user manual], but this page is a place to record observations, notes, and suggestions on them.
[http://www.haskell.org/////.html]about of overlapping instances.
Latest revision as of 08:57, 20 May 2014
Type system extensions in GHC
GHC comes with a rather large collection of type-system extensions (beyond Haskell 98). They are all documented in the user manual, but this page is a place to record user-oriented observations, notes, and suggestions on how to use them.
- Indexed data types
- Agda-like "holes" in GHC
- "Stand-alone deriving" declarations
- Type signatures and ambiguity
- Overlapping instances. GHC supports overlapping instances, with carefully specified rules. Make sure you read the relevant sections of the user manual. Here is an appliation note about advanced use of overlapping instances, combined with functional dependencies.
- Safe coercions using Coercible