... | ... | @@ -89,7 +89,7 @@ with |
|
|
|
|
|
|
|
|
|
|
|
With the exception of the LANGUAGE pragma, an implementation is not required to respect any pragma. For non-LANGUAGE pragmas, the pragma should be ignored if an implementation is not prepared to handle it.
|
|
|
An implementation is not required to respect any pragma and any pragma can be ignored if an implementation is not prepared to handle it. However, implementations are strongly encouraged to support the LANGUAGE pragma described below as there are many language extensions being used in practice.
|
|
|
|
|
|
|
|
|
|
... | ... | @@ -119,7 +119,7 @@ If a Haskell implementation does not recognize or support a particular language |
|
|
|
|
|
|
|
|
|
|
|
In the interests of portability, multiple attempts to enable the same, supported language features (e.g. via command-line arguments, implementation-specific extension dependencies or non-standard pragmas) are specifically permitted. Also, Haskell 2010 implementations are required to support {-\# LANGUAGE Haskell2010 -\#}. {-\# LANGUAGE Haskell2010 -\#} implies support for the following named language extensions standardized in Haskell 2010 (and recognized by pre-Haskell 2010 compilers): {-\# LANGUAGE [PatternGuards](pattern-guards) -\#}, {-\# LANGUAGE [EmptyDataDecls](empty-data-decls) \#-}, {-\# LANGUAGE [ForeignFunctionInterface](foreign-function-interface) \#-}, \<to-be-completed when Haskell 2010 has been finalized\>.
|
|
|
In the interests of portability, multiple attempts to enable the same, supported language features (e.g. via command-line arguments, implementation-specific extension dependencies or non-standard pragmas) are specifically permitted. Haskell 2010 implementations that support the LANGUAGE pragma are required to support {-\# LANGUAGE Haskell2010 -\#}. Those implementations are also encouraged to support the following named language extensions: [DoAndIfThenElse](do-and-if-then-else), [HierarchicalModules](hierarchical-modules), [FixityResolution](fixity-resolution), [PatternGuards](pattern-guards), NoNPlusKPatterns, [RelaxedDependencyAnalysis](relaxed-dependency-analysis), [LineCommentSyntax](line-comment-syntax), [EmptyDataDeclarations](empty-data-declarations), [LanguagePragma](language-pragma) and [ForeignFunctionInterface](foreign-function-interface). These are the named language extensions, supported by some pre-Haskell 2010 implementations, that have been integrated into this report.
|
|
|
|
|
|
|
|
|
|