@@ -274,39 +274,39 @@ In PureScript, operator sections look a little bit different.
274
274
275
275
The PureScript compiler does not support GHC-like language extensions. However, there are some "built-in" language features that are equivalent (or at least similar) to a number of GHC extensions. These currently are:
276
276
277
- * [ ApplicativeDo] ( https://downloads.haskell.org/~ ghc/latest/docs/html/users_guide/glasgow_exts .html#extension-ApplicativeDo )
278
- * [ BlockArguments] ( https://downloads.haskell.org/~ ghc/latest/docs/html/users_guide/glasgow_exts .html#extension-BlockArguments )
279
- * [ DataKinds] ( https://downloads.haskell.org/~ ghc/latest/docs/html/users_guide/glasgow_exts .html#extension-DataKinds ) (see note below)
280
- * [ DeriveFunctor] ( https://downloads.haskell.org/~ ghc/latest/docs/html/users_guide/glasgow_exts .html#extension-DeriveFunctor )
281
- * [ DeriveGeneric] ( https://downloads.haskell.org/~ ghc/latest/docs/html/users_guide/glasgow_exts .html#extension-DeriveGeneric )
282
- * [ EmptyDataDecls] ( https://downloads.haskell.org/~ ghc/latest/docs/html/users_guide/glasgow_exts .html#extension-EmptyDataDecls )
283
- * [ ExplicitForAll] ( https://downloads.haskell.org/~ ghc/latest/docs/html/users_guide/glasgow_exts .html#extension-ExplicitForAll )
284
- * [ FlexibleContexts] ( https://downloads.haskell.org/~ ghc/latest/docs/html/users_guide/glasgow_exts .html#extension-FlexibleContexts )
285
- * [ FlexibleInstances] ( https://downloads.haskell.org/~ ghc/latest/docs/html/users_guide/glasgow_exts .html#extension-FlexibleInstances )
286
- * [ FunctionalDependencies] ( https://downloads.haskell.org/~ ghc/latest/docs/html/users_guide/glasgow_exts .html#extension-FunctionalDependencies )
287
- * [ GeneralisedNewtypeDeriving] ( https://downloads.haskell.org/~ ghc/latest/docs/html/users_guide/glasgow_exts .html#extension-GeneralisedNewtypeDeriving )
288
- * [ InstanceSigs] ( https://downloads.haskell.org/~ ghc/latest/docs/html/users_guide/glasgow_exts .html#extension-InstanceSigs )
289
- * [ KindSignatures] ( https://downloads.haskell.org/~ ghc/latest/docs/html/users_guide/glasgow_exts .html#extension-KindSignatures )
290
- * [ LambdaCase] ( https://downloads.haskell.org/~ ghc/latest/docs/html/users_guide/glasgow_exts .html#extension-LambdaCase )
291
- * [ LiberalTypeSynonyms] ( https://downloads.haskell.org/~ ghc/latest/docs/html/users_guide/glasgow_exts .html#extension-LiberalTypeSynonyms )
292
- * [ MonoLocalBinds] ( https://downloads.haskell.org/~ ghc/latest/docs/html/users_guide/glasgow_exts .html#extension-MonoLocalBinds )
293
- * [ MultiParamTypeClasses] ( https://downloads.haskell.org/~ ghc/latest/docs/html/users_guide/glasgow_exts .html#extension-MultiParamTypeClasses )
294
- * [ NamedFieldPuns] ( https://downloads.haskell.org/~ ghc/latest/docs/html/users_guide/glasgow_exts .html#extension-NamedFieldPuns )
295
- * [ NoImplicitPrelude] ( https://downloads.haskell.org/~ ghc/latest/docs/html/users_guide/glasgow_exts .html#extension-NoImplicitPrelude )
296
- * [ NumericUnderscores] ( https://downloads.haskell.org/~ ghc/latest/docs/html/users_guide/glasgow_exts .html#extension-NumericUnderscores )
297
- * [ PartialTypeSignatures] ( https://downloads.haskell.org/~ ghc/latest/docs/html/users_guide/glasgow_exts .html#extension-PartialTypeSignatures )
298
- * [ PolyKinds] ( https://downloads.haskell.org/~ ghc/latest/docs/html/users_guide/glasgow_exts .html#extension-PolyKinds )
299
- * [ RankNTypes] ( https://downloads.haskell.org/~ ghc/latest/docs/html/users_guide/glasgow_exts .html#extension-RankNTypes )
300
- * [ RebindableSyntax] ( https://downloads.haskell.org/~ ghc/latest/docs/html/users_guide/glasgow_exts .html#extension-RebindableSyntax )
301
- * [ RoleAnnotations] ( https://downloads.haskell.org/~ ghc/latest/docs/html/users_guide/glasgow_exts .html#extension-RoleAnnotations )
302
- * [ ScopedTypeVariables] ( https://downloads.haskell.org/~ ghc/latest/docs/html/users_guide/glasgow_exts .html#extension-ScopedTypeVariables )
303
- * [ StandaloneDeriving] ( https://downloads.haskell.org/~ ghc/latest/docs/html/users_guide/glasgow_exts .html#extension-StandaloneDeriving )
304
- * [ StandaloneKindSignatures] ( https://downloads.haskell.org/~ ghc/latest/docs/html/users_guide/glasgow_exts .html#extension-StandaloneKindSignatures )
305
- * [ TypeOperators] ( https://downloads.haskell.org/~ ghc/latest/docs/html/users_guide/glasgow_exts .html#extension-TypeOperators )
306
- * [ TypeSynonymInstances] ( https://downloads.haskell.org/~ ghc/latest/docs/html/users_guide/glasgow_exts .html#extension-TypeSynonymInstances )
307
- * [ UndecidableInstances] ( https://downloads.haskell.org/~ ghc/latest/docs/html/users_guide/glasgow_exts .html#extension-UndecidableInstances )
308
- * [ UndecidableSuperClasses] ( https://downloads.haskell.org/~ ghc/latest/docs/html/users_guide/glasgow_exts .html#extension-UndecidableSuperClasses )
309
- * [ UnicodeSyntax] ( https://downloads.haskell.org/~ ghc/latest/docs/html/users_guide/glasgow_exts .html#extension-UnicodeSyntax )
277
+ * [ ApplicativeDo] ( https://downloads.haskell.org/ghc/latest/docs/html/users_guide/exts/applicative_do .html#extension-ApplicativeDo )
278
+ * [ BlockArguments] ( https://downloads.haskell.org/ghc/latest/docs/html/users_guide/exts/block_arguments .html#extension-BlockArguments )
279
+ * [ DataKinds] ( https://downloads.haskell.org/ghc/latest/docs/html/users_guide/exts/data_kinds .html#extension-DataKinds ) (see note below)
280
+ * [ DeriveFunctor] ( https://downloads.haskell.org/ghc/latest/docs/html/users_guide/exts/deriving_extra .html#extension-DeriveFunctor )
281
+ * [ DeriveGeneric] ( https://downloads.haskell.org/ghc/latest/docs/html/users_guide/exts/generics .html#extension-DeriveGeneric )
282
+ * [ EmptyDataDecls] ( https://downloads.haskell.org/ghc/latest/docs/html/users_guide/exts/nullary_types .html#extension-EmptyDataDecls )
283
+ * [ ExplicitForAll] ( https://downloads.haskell.org/ghc/latest/docs/html/users_guide/exts/explicit_forall .html#extension-ExplicitForAll )
284
+ * [ FlexibleContexts] ( https://downloads.haskell.org/ghc/latest/docs/html/users_guide/exts/flexible_contexts .html#extension-FlexibleContexts )
285
+ * [ FlexibleInstances] ( https://downloads.haskell.org/ghc/latest/docs/html/users_guide/exts/instances .html#extension-FlexibleInstances )
286
+ * [ FunctionalDependencies] ( https://downloads.haskell.org/ghc/latest/docs/html/users_guide/exts/functional_dependencies .html#extension-FunctionalDependencies )
287
+ * [ GeneralisedNewtypeDeriving] ( https://downloads.haskell.org/ghc/latest/docs/html/users_guide/exts/newtype_deriving .html#extension-GeneralisedNewtypeDeriving )
288
+ * [ InstanceSigs] ( https://downloads.haskell.org/ghc/latest/docs/html/users_guide/exts/instances .html#extension-InstanceSigs )
289
+ * [ KindSignatures] ( https://downloads.haskell.org/ghc/latest/docs/html/users_guide/exts/kind_signatures .html#extension-KindSignatures )
290
+ * [ LambdaCase] ( https://downloads.haskell.org/ghc/latest/docs/html/users_guide/exts/lambda_case .html#extension-LambdaCase )
291
+ * [ LiberalTypeSynonyms] ( https://downloads.haskell.org/ghc/latest/docs/html/users_guide/exts/liberal_type_synonyms .html#extension-LiberalTypeSynonyms )
292
+ * [ MonoLocalBinds] ( https://downloads.haskell.org/ghc/latest/docs/html/users_guide/exts/let_generalisation .html#extension-MonoLocalBinds )
293
+ * [ MultiParamTypeClasses] ( https://downloads.haskell.org/ghc/latest/docs/html/users_guide/exts/multi_param_type_classes .html#extension-MultiParamTypeClasses )
294
+ * [ NamedFieldPuns] ( https://downloads.haskell.org/ghc/latest/docs/html/users_guide/exts/record_puns .html#extension-NamedFieldPuns )
295
+ * [ NoImplicitPrelude] ( https://downloads.haskell.org/ghc/latest/docs/html/users_guide/exts/rebindable_syntax .html#extension-NoImplicitPrelude )
296
+ * [ NumericUnderscores] ( https://downloads.haskell.org/ghc/latest/docs/html/users_guide/exts/numeric_underscores .html#extension-NumericUnderscores )
297
+ * [ PartialTypeSignatures] ( https://downloads.haskell.org/ghc/latest/docs/html/users_guide/exts/partial_type_signatures .html#extension-PartialTypeSignatures )
298
+ * [ PolyKinds] ( https://downloads.haskell.org/ghc/latest/docs/html/users_guide/exts/poly_kinds .html#extension-PolyKinds )
299
+ * [ RankNTypes] ( https://downloads.haskell.org/ghc/latest/docs/html/users_guide/exts/rank_polymorphism .html#extension-RankNTypes )
300
+ * [ RebindableSyntax] ( https://downloads.haskell.org/ghc/latest/docs/html/users_guide/exts/rebindable_syntax .html#extension-RebindableSyntax )
301
+ * [ RoleAnnotations] ( https://downloads.haskell.org/ghc/latest/docs/html/users_guide/exts/roles .html#extension-RoleAnnotations )
302
+ * [ ScopedTypeVariables] ( https://downloads.haskell.org/ghc/latest/docs/html/users_guide/exts/scoped_type_variables .html#extension-ScopedTypeVariables )
303
+ * [ StandaloneDeriving] ( https://downloads.haskell.org/ghc/latest/docs/html/users_guide/exts/standalone_deriving .html#extension-StandaloneDeriving )
304
+ * [ StandaloneKindSignatures] ( https://downloads.haskell.org/ghc/latest/docs/html/users_guide/exts/standalone_kind_signatures .html#extension-StandaloneKindSignatures )
305
+ * [ TypeOperators] ( https://downloads.haskell.org/ghc/latest/docs/html/users_guide/exts/type_operators .html#extension-TypeOperators )
306
+ * [ TypeSynonymInstances] ( https://downloads.haskell.org/ghc/latest/docs/html/users_guide/exts/instances .html#extension-TypeSynonymInstances )
307
+ * [ UndecidableInstances] ( https://downloads.haskell.org/ghc/latest/docs/html/users_guide/exts/instances .html#extension-UndecidableInstances )
308
+ * [ UndecidableSuperClasses] ( https://downloads.haskell.org/ghc/latest/docs/html/users_guide/exts/undecidable_super_classes .html#extension-UndecidableSuperClasses )
309
+ * [ UnicodeSyntax] ( https://downloads.haskell.org/ghc/latest/docs/html/users_guide/exts/unicode_syntax .html#extension-UnicodeSyntax )
310
310
311
311
Note on ` DataKinds ` : Unlike in Haskell, user-defined kinds are open, and they are not promoted, which means that their constructors can only be used in types, and not in values. For more information about the kind system, see https://github.com/purescript/documentation/blob/master/language/Types.md#kind-system
312
312
0 commit comments