| 12 | | || GHC || [ full (flagname) | partial (flagname) (comments) | none ] || |
| 13 | | || nhc98 || [ full (flagname) | partial (flagname) (comments) | none ] || |
| 14 | | || Hugs || [ full (flagname) | partial (flagname) (comments) | none ] || |
| 15 | | || UHC || [ full (flagname) | partial (flagname) (comments) | none ] || |
| 16 | | || JHC || [ full (flagname) | partial (flagname) (comments) | none ] || |
| 17 | | || LHC || [ full (flagname) | partial (flagname) (comments) | none ] || |
| | 12 | || GHC || [ full -fglasgow-exts ] || |
| | 13 | || nhc98 || [ none ] || |
| | 14 | || Hugs || [ none ] || |
| | 15 | || UHC || [ none ] || |
| | 16 | || JHC || [ none ] || |
| | 17 | || LHC || [ full -fglasgow-exts ] || |
| | 18 | |
| | 19 | Information from language documentation only. I haven't tried it on any of these systems. |
| | 86 | |
| | 87 | Replace the syntax in [http://www.haskell.org/onlinereport/decls.html] '''4 Declarations and Bindings''': |
| | 88 | {{{ |
| | 89 | #!html |
| | 90 | <div style="background: #fdd; border-color: #c00; border-style: solid; border-width: 1px"> |
| | 91 | }}} |
| | 92 | topdecl -> ... |
| | 93 | | data [context =>] simpletype = constrs [deriving] |
| | 94 | {{{ |
| | 95 | #!html |
| | 96 | </div> |
| | 97 | }}} |
| | 98 | |
| | 99 | with |
| | 100 | {{{ |
| | 101 | #!html |
| | 102 | <div style="background: #dfd; border-color: #c00; border-style: solid; border-width: 1px"> |
| | 103 | }}} |
| | 104 | topdecl -> ... |
| | 105 | | data [context =>] simpletype [= constrs] [deriving] |
| | 106 | |
| | 107 | {{{ |
| | 108 | #!html |
| | 109 | </div> |
| | 110 | }}} |
| | 111 | |
| | 112 | Make the same change in the copy of the syntax at the top of 4.2.1 ''Algebraic Datatype Declarations''. |
| | 113 | Also in that section, replace the sentence: |
| | 114 | {{{ |
| | 115 | #!html |
| | 116 | <div style="background: #fdd; border-color: #c00; border-style: solid; border-width: 1px"> |
| | 117 | }}} |
| | 118 | This declaration introduces a new type constructor T with one or more constituent data constructors K1, ..., Kn. |
| | 119 | {{{ |
| | 120 | #!html |
| | 121 | </div> |
| | 122 | }}} |
| | 123 | |
| | 124 | with |
| | 125 | {{{ |
| | 126 | #!html |
| | 127 | <div style="background: #dfd; border-color: #c00; border-style: solid; border-width: 1px"> |
| | 128 | }}} |
| | 129 | This declaration introduces a new type constructor T with zero or more constituent data constructors K1, ..., Kn. |
| | 130 | {{{ |
| | 131 | #!html |
| | 132 | </div> |
| | 133 | }}} |