Admin message

Due to a large amount of spam we do not allow new users to create repositories, they are "external" users. If you are a new user and want to create a repository, for example for forking GHC, open a new issue on ghc/ghc using the "get-verified" issue template

Decouple Language.Haskell.Syntax from GHC.Types.SourceText
There are several modules within **`Language.Haskell.Syntax`** which depend **`GHC.Types.SourceText`**. Each of these dependencies will need to be removed in order to separate the abstract syntax tree from the GHC internals as part of the Trees That Grow project. This pruning will require two steps ## Step 1: Migrate the "literal" data-types There are three types of literal values that can be parsed from Haskell source text. These are currently defined within **`GHC.Types.SourceText`** and they all need to be migrated over to **`Language.Haskell.Syntax.Lit`**. ### `FractionalLit` 1. Migrate `FractionalLit` from **`GHC.Types.SourceText`** to **`L.H.S.Lit`** 2. Migrate `FractionalExponentBase` from **`GHC.Types.SourceText`** to **`L.H.S.Lit`** 3. Move `SourceText` of `FractionalLit` to extension point ### `IntegralLit` 1. Migrate `IntegralLit` from **`GHC.Types.SourceText`** to **`L.H.S.Lit`** 2. Move `SourceText` of `IntegralLit` to extension point ### `StringLiteral` 1. Migrate `StringLiteral` from **`GHC.Types.SourceText`** to **`L.H.S.Lit`** 2. Move `SourceText` and `Maybe NoCommentsLocation` of `StringLit` to extension point 3. Add TODO about the `LocatedA` comment 4. Rename to `StringLit` *(possibly a bad idea)* ## Step 2: Prune remaining imports After the literal data-types are defined within **`Language.Haskell.Syntax.Lit`**, the remaining imports of **`GHC.Types.SourceText`** can be removed by moving the `SourceText` values within data-types to extension points. The following modules will require such extension points for some of their data-types: - Edge: **`L.H.S.Binds`** -> `SourceText` - import `StringLiteral` - Edge **`L.H.S.Expr`** -> `SourceText` - import `StringLiteral` - Edge **`L.H.S.Decls`** -> `SourceText` - import `StringLiteral` - Edge **`L.H.S.Lit`** -> `SourceText` - import `FractionalLiteral` - import `IntegralLiteral` - import `StringLiteral` - `OverLitVal` contains `SourceText` - Change to the text vals to `StringLit` - @alt-romes will merge MR !12847 *(maybe)*
issue