Haskell 2010 Language Report
whenever the open brace is omitted after the keyword where, let, do, or of. When this happens, the indentation of the next lexeme (whether or not on a new line) is remembered and the omitted open brace is inserted (a close brace is inserted). If the indentation of the non-brace lexeme immediately following a where, let, do or of is less than or equal to the current indentation level, then instead of starting a layout tuple was detected, and (c) the close brace at the very end, inserted because of the column 0 indentation of the end-of-file token. 14 CHAPTER 2. LEXICAL STRUCTURE module AStack( Stack, push, pop, top0 码力 | 329 页 | 1.43 MB | 1 年前3Agda User Manual v2.5.3
mutual postulate primitive private where The first token after the layout keyword decides the indentation of the block. Any token indented more than this is part of the previous statement, a token at the Nat -- also statement 2 one : Nat -- outside the layout block one = suc zero Note that the indentation of the layout keyword does not matter. An Agda file contains one top-level layout block, with Documentation, Release 2.5.3 f : Nat → Nat f n = suc n g : Nat → Nat → Nat g n m = m Note that we use indentation to indicate which definitions are part of a module. In the example f is in the module Main.B and0 码力 | 135 页 | 600.40 KB | 1 年前3Agda User Manual v2.5.3
mutual postulate primitive private where The first token after the layout keyword decides the indentation of the block. Any token indented more than this is part of the previous statement, a token at the -- also statement 2 one : Nat -- outside the layout block one = suc zero Note that the indentation of the layout keyword does not matter. An Agda file contains one top-level layout block, with module B where f : Nat → Nat f n = suc n g : Nat → Nat → Nat g n m = m Note that we use indentation to indicate which definitions are part of a module. In the example f is in the module Main.B and0 码力 | 185 页 | 185.00 KB | 1 年前3Agda User Manual v2.6.0
mutual postulate primitive private where The first token after the layout keyword decides the indentation of the block. Any token indented more than this is part of the previous statement, a token at the one = suc zero 80 Chapter 3. Language Reference Agda User Manual, Release 2.6.0 Note that the indentation of the layout keyword does not matter. An Agda file contains one top-level layout block, with where module B where f : Nat → Nat f n = suc n g : Nat → Nat → Nat g n m = m Note that we use indentation to indicate which definitions are part of a module. In the example f is in the module Main.B and0 码力 | 191 页 | 857.07 KB | 1 年前3Agda User Manual v2.6.0.1
mutual postulate primitive private where The first token after the layout keyword decides the indentation of the block. Any token indented more than this is part of the previous statement, a token at the = suc zero 80 Chapter 3. Language Reference Agda User Manual, Release 2.6.0.1 Note that the indentation of the layout keyword does not matter. An Agda file contains one top-level layout block, with where module B where f : Nat → Nat f n = suc n g : Nat → Nat → Nat g n m = m Note that we use indentation to indicate which definitions are part of a module. In the example f is in the module Main.B and0 码力 | 191 页 | 857.57 KB | 1 年前3Agda User Manual v2.5.4.2
mutual postulate primitive private where The first token after the layout keyword decides the indentation of the block. Any token indented more than this is part of the previous statement, a token at the -- also statement 2 one : Nat -- outside the layout block one = suc zero Note that the indentation of the layout keyword does not matter. An Agda file contains one top-level layout block, with module B where f : Nat → Nat f n = suc n g : Nat → Nat → Nat g n m = m Note that we use indentation to indicate which definitions are part of a module. In the example f is in the module Main.B and0 码力 | 216 页 | 207.61 KB | 1 年前3Agda User Manual v2.5.4
mutual postulate primitive private where The first token after the layout keyword decides the indentation of the block. Any token indented more than this is part of the previous statement, a token at the Nat -- also statement 2 one : Nat -- outside the layout block one = suc zero Note that the indentation of the layout keyword does not matter. An Agda file contains one top-level layout block, with where module B where f : Nat → Nat f n = suc n g : Nat → Nat → Nat g n m = m Note that we use indentation to indicate which definitions are part of a module. In the example f is in the module Main.B and0 码力 | 155 页 | 668.67 KB | 1 年前3Agda User Manual v2.5.4.1
mutual postulate primitive private where The first token after the layout keyword decides the indentation of the block. Any token indented more than this is part of the previous statement, a token at the Nat -- also statement 2 one : Nat -- outside the layout block one = suc zero Note that the indentation of the layout keyword does not matter. An Agda file contains one top-level layout block, with where module B where f : Nat → Nat f n = suc n g : Nat → Nat → Nat g n m = m Note that we use indentation to indicate which definitions are part of a module. In the example f is in the module Main.B and0 码力 | 155 页 | 668.90 KB | 1 年前3Agda User Manual v2.5.4.1
mutual postulate primitive private where The first token after the layout keyword decides the indentation of the block. Any token indented more than this is part of the previous statement, a token at the -- also statement 2 one : Nat -- outside the layout block one = suc zero Note that the indentation of the layout keyword does not matter. An Agda file contains one top-level layout block, with module B where f : Nat → Nat f n = suc n g : Nat → Nat → Nat g n m = m Note that we use indentation to indicate which definitions are part of a module. In the example f is in the module Main.B and0 码力 | 216 页 | 207.64 KB | 1 年前3Agda User Manual v2.5.4.2
mutual postulate primitive private where The first token after the layout keyword decides the indentation of the block. Any token indented more than this is part of the previous statement, a token at the Nat -- also statement 2 one : Nat -- outside the layout block one = suc zero Note that the indentation of the layout keyword does not matter. An Agda file contains one top-level layout block, with where module B where f : Nat → Nat f n = suc n g : Nat → Nat → Nat g n m = m Note that we use indentation to indicate which definitions are part of a module. In the example f is in the module Main.B and0 码力 | 155 页 | 668.75 KB | 1 年前3
共 49 条
- 1
- 2
- 3
- 4
- 5