Skip to content
Snippets Groups Projects
Commit f74204c4 authored by Boris Lykah's avatar Boris Lykah Committed by Marge Bot
Browse files

Document release when TypeApplications allowed declaring variables as inferred

parent 6de8ac89
No related branches found
No related tags found
No related merge requests found
......@@ -187,8 +187,9 @@ in type and class declarations are ordered (:ref:`inferring-variable-order`).
Manually defining inferred variables
------------------------------------
While user-written type or kind variables are specified by default, GHC permits
labelling these variables as inferred. By writing the type variable binder in
Since the 9.0.1 release, GHC permits labelling the user-written
type or kind variables as *inferred*, in contrast
to the default of *specified*. By writing the type variable binder in
braces as ``{tyvar}`` or ``{tyvar :: kind}``, the new variable will be
classified as inferred, not specified. Doing so gives the programmer control
over which variables can be manually instantiated and which can't.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment