11. GHC Language FeaturesΒΆ
- 11.1. Language options
- 11.2. Unboxed types and primitive operations
- 11.3. Syntactic extensions
- 11.3.1. Unicode syntax
- 11.3.2. The magic hash
- 11.3.3. Negative literals
- 11.3.4. Fractional looking integer literals
- 11.3.5. Binary integer literals
- 11.3.6. Hexadecimal floating point literals
- 11.3.7. Numeric underscores
- 11.3.8. Pattern guards
- 11.3.9. View patterns
- 11.3.10. n+k patterns
- 11.3.11. The recursive do-notation
- 11.3.12. Applicative do-notation
- 11.3.13. Parallel List Comprehensions
- 11.3.14. Generalised (SQL-like) List Comprehensions
- 11.3.15. Monad comprehensions
- 11.3.16. New monadic failure desugaring mechanism
- 11.3.17. Rebindable syntax and the implicit Prelude import
- 11.3.18. Postfix operators
- 11.3.19. Tuple sections
- 11.3.20. Lambda-case
- 11.3.21. Empty case alternatives
- 11.3.22. Multi-way if-expressions
- 11.3.23. Local Fixity Declarations
- 11.3.24. Import and export extensions
- 11.3.25. More liberal syntax for function arguments
- 11.3.26. Summary of stolen syntax
- 11.4. Extensions to data types and type synonyms
- 11.4.1. Data types with no constructors
- 11.4.2. Data type contexts
- 11.4.3. Infix type constructors, classes, and type variables
- 11.4.4. Type operators
- 11.4.5. Liberalised type synonyms
- 11.4.6. Existentially quantified data constructors
- 11.4.7. Declaring data types with explicit constructor signatures
- 11.4.8. Generalised Algebraic Data Types (GADTs)
- 11.5. Extensions to the record system
- 11.6. Extensions to the “deriving” mechanism
- 11.6.1. Deriving instances for empty data types
- 11.6.2. Inferred context for deriving clauses
- 11.6.3. Stand-alone deriving declarations
- 11.6.4. Deriving instances of extra classes (
Data
, etc.) - 11.6.5. Generalised derived instances for newtypes
- 11.6.6. Deriving any other class
- 11.6.7. Deriving strategies
- 11.6.8. Deriving via
- 11.7. Pattern synonyms
- 11.8. Class and instances declarations
- 11.9. Type families
- 11.10. Datatype promotion
- 11.11. Kind polymorphism
- 11.11.1. Overview of kind polymorphism
- 11.11.2. Overview of Type-in-Type
- 11.11.3. Principles of kind inference
- 11.11.4. Inferring the order of variables in a type/class declaration
- 11.11.5. Complete user-supplied kind signatures and polymorphic recursion
- 11.11.6. Kind inference in closed type families
- 11.11.7. Kind inference in class instance declarations
- 11.11.8. Kind inference in type signatures
- 11.11.9. Explicit kind quantification
- 11.11.10. Kind-indexed GADTs
- 11.11.11. Higher-rank kinds
- 11.11.12. The kind
Type
- 11.11.13. Inferring dependency in datatype declarations
- 11.11.14. Inferring dependency in user-written
forall
s - 11.11.15. Kind defaulting without
PolyKinds
- 11.11.16. Pretty-printing in the presence of kind polymorphism
- 11.12. Levity polymorphism
- 11.13. Type-Level Literals
- 11.14. Equality constraints, Coercible, and the kind Constraint
- 11.15. Quantified constraints
- 11.16. Extensions to type signatures
- 11.17. Lexically scoped type variables
- 11.18. Bindings and generalisation
- 11.19. Visible type application
- 11.20. Implicit parameters
- 11.21. Arbitrary-rank polymorphism
- 11.22. Impredicative polymorphism
- 11.23. Typed Holes
- 11.24. Partial Type Signatures
- 11.25. Custom compile-time errors
- 11.26. Deferring type errors to runtime
- 11.27. Template Haskell
- 11.28. Arrow notation
- 11.29. Bang patterns and Strict Haskell
- 11.30. Assertions
- 11.31. Static pointers
- 11.32. Pragmas
- 11.32.1.
LANGUAGE
pragma - 11.32.2.
OPTIONS_GHC
pragma - 11.32.3.
INCLUDE
pragma - 11.32.4.
WARNING
andDEPRECATED
pragmas - 11.32.5.
MINIMAL
pragma - 11.32.6.
INLINE
andNOINLINE
pragmas - 11.32.7.
LINE
pragma - 11.32.8.
COLUMN
pragma - 11.32.9.
RULES
pragma - 11.32.10.
SPECIALIZE
pragma - 11.32.11.
SPECIALIZE
instance pragma - 11.32.12.
UNPACK
pragma - 11.32.13.
NOUNPACK
pragma - 11.32.14.
SOURCE
pragma - 11.32.15.
COMPLETE
pragmas - 11.32.16. Disambiguating between multiple
COMPLETE
pragmas - 11.32.17.
OVERLAPPING
,OVERLAPPABLE
,OVERLAPS
, andINCOHERENT
pragmas
- 11.32.1.
- 11.33. Rewrite rules
- 11.34. Special built-in functions
- 11.35. Generic classes
- 11.36. Generic programming
- 11.37. Roles
- 11.38. HasCallStack
- 11.39. Concurrent and Parallel Haskell
- 11.40. Safe Haskell