Changes between Version 16 and Version 17 of Commentary/Compiler/HsSynType


Ignore:
Timestamp:
Jul 8, 2015 10:16:48 AM (4 years ago)
Author:
adamse
Comment:

lhs -> hs

Legend:

Unmodified
Added
Removed
Modified
  • Commentary/Compiler/HsSynType

    v16 v17  
    99
    1010The {{{HsSyn}}} modules live in the [[GhcFile(compiler/hsSyn)]] directory.  Each module declares a related group of declarations, ''and'' gives their pretty-printer.
    11  * [[GhcFile(compiler/hsSyn/HsSyn.lhs)]]: the root module.  It exports everything you need, and it's generally what you should import.
    12  * [[GhcFile(compiler/hsSyn/HsBinds.lhs)]]: bindings.
    13  * [[GhcFile(compiler/hsSyn/HsImpExp.lhs)]]: imports and exports.
    14  * [[GhcFile(compiler/hsSyn/HsDecls.lhs)]]: top-level declarations.
    15  * [[GhcFile(compiler/hsSyn/HsExpr.lhs)]]: expressions, match expressions, comprehensions.
    16  * [[GhcFile(compiler/hsSyn/HsLit.lhs)]]: literals.
    17  * [[GhcFile(compiler/hsSyn/HsPat.lhs)]]: patterns.
    18  * [[GhcFile(compiler/hsSyn/HsTypes.lhs)]]: types.
    19  * [[GhcFile(compiler/hsSyn/HsUtils.lhs)]]: utility functions (no data types).
     11 * [[GhcFile(compiler/hsSyn/HsSyn.hs)]]: the root module.  It exports everything you need, and it's generally what you should import.
     12 * [[GhcFile(compiler/hsSyn/HsBinds.hs)]]: bindings.
     13 * [[GhcFile(compiler/hsSyn/HsImpExp.hs)]]: imports and exports.
     14 * [[GhcFile(compiler/hsSyn/HsDecls.hs)]]: top-level declarations.
     15 * [[GhcFile(compiler/hsSyn/HsExpr.hs)]]: expressions, match expressions, comprehensions.
     16 * [[GhcFile(compiler/hsSyn/HsLit.hs)]]: literals.
     17 * [[GhcFile(compiler/hsSyn/HsPat.hs)]]: patterns.
     18 * [[GhcFile(compiler/hsSyn/HsTypes.hs)]]: types.
     19 * [[GhcFile(compiler/hsSyn/HsUtils.hs)]]: utility functions (no data types).
    2020
    21 There is significant mutual recursion between modules, and hence a couple of {{{lhs-boot}}} files. Look at [wiki:ModuleDependencies] to see the dependencies.
     21There is significant mutual recursion between modules, and hence a couple of {{{hs-boot}}} files. Look at [wiki:ModuleDependencies] to see the dependencies.
    2222
    2323== Decorating `HsSyn` with type information ==
     
    6666== Source Locations ==
    6767
    68 `HsSyn` makes heavy use of the `Located` type ([[GhcFile(compiler/basicTypes/SrcLoc.lhs)]]):
     68`HsSyn` makes heavy use of the `Located` type ([[GhcFile(compiler/basicTypes/SrcLoc.hs)]]):
    6969{{{
    7070data Located e = L SrcSpan e
     
    7373  * `SrcLoc` specifies a particular source location: (filename, line number, character position)
    7474  * `SrcSpan` specifes a range of source locations: (filename, start line number and character position, end line number and character position)
    75 More details in [[GhcFile(compiler/basicTypes/SrcLoc.lhs)]].
     75More details in [[GhcFile(compiler/basicTypes/SrcLoc.hs)]].
    7676
    7777Naming convention within the code: "`LHs`" means located Haskell, e.g.