You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+14-6Lines changed: 14 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,14 +48,23 @@ To document a new error code, the following workflow can be convenient.
48
48
49
49
### Task Lists
50
50
51
-
We keep track of which errors are being worked on, and which still require documentation,
51
+
We keep track of which GHC errors are being worked on, and which still require documentation,
52
52
using a bunch of issues:
53
53
54
54
-[All error codes that still need documenting are collected here](https://github.com/haskellfoundation/error-message-index/issues/162). This issue contains links to individual issues for every error, allowing the list to be updated as PRs are merged. These individual issues for every error may also contain helpful links to test cases, suggestions on examples, and useful metadata to a contributor.
55
55
- There is also an (incomplete) list of issues tagged `good first issue`; these are errors which are especially good for newer contributors to document (no incredibly esoteric type-level errors that are hard to understand, let alone describe!): https://github.com/haskellfoundation/error-message-index/labels/good%20first%20issue
56
56
- Issues related to improving the site, the workflow for contributing, or other information are tagged `error-message-index-site`: https://github.com/haskellfoundation/error-message-index/labels/error-message-index-site
57
57
- Issues related to improving, clarifying, or extending existing documentation are tagged `error-message-index-improvements`: https://github.com/haskellfoundation/error-message-index/labels/error-message-index-improvements
58
58
59
+
## Building Stack with Error Codes
60
+
61
+
The next release of Stack will also include error codes. Until it is
62
+
released, building a Git version (which just requires an existing
63
+
install of Stack) is sufficient to get the codes. An unreleased version
64
+
of Stack can be obtained with Stack by using the command
65
+
`stack upgrade --source-only --git`. However, if you used GHCup to
66
+
install Stack, you should also use GHCup to upgrade Stack.
67
+
59
68
## Contributing New Messages
60
69
61
70
The Haskell Message Index is generated from a collection of files on
@@ -64,8 +73,8 @@ disk using Hakyll. Inside the top-level of the site source, there is a
64
73
a message whose name is the message code. This subdirectory contains a
65
74
file `index.md` that describes the message. Additionally,
66
75
subdirectories of the message directory may represent examples - each
67
-
example contains a file `index.md` as well as a number of Haskell
68
-
files that represent the example.
76
+
example contains a file `index.md` as well as a number of Haskell,
77
+
Cabal, or YAML files that represent the example.
69
78
70
79
A message with ID `GHC-123` and two examples might have the following structure:
71
80
@@ -87,10 +96,10 @@ named as specified here, while the other components may vary.
87
96
You can also use the `makeFolder.sh` templating script. Usage is as follows:
This will generate a folder called `GHC-NUMERIC_ERROR_CODE` containing an empty `index.md` file, a subfolder called `example1` with a corresponding `index.md`, and two blank `before`/`after` Haskell source files.
102
+
This will generate a folder called `NAMESPACE-NUMERIC_ERROR_CODE` containing an empty `index.md` file, a subfolder called `example1` with a corresponding `index.md`, and two blank `before`/`after` Haskell source files. Use `GHC` as `NAMESPACE` to document GHC error messages, and `S` as `NAMESPACE` to document Stack errors.
94
103
95
104
### Message Descriptions
96
105
@@ -133,7 +142,6 @@ field. All `.hs` files are shown in the list of files for the
133
142
example. The `index.md` file should explain how the files illustrate
134
143
the message.
135
144
136
-
137
145
## Contributing to the Site
138
146
139
147
The site is generated using [Hakyll](https://jaspervdj.be/hakyll/).
This error in a [project-level `stack.yaml` file](https://docs.haskellstack.org/en/stable/yaml_configuration/#project-specific-configuration) can be fixed by specifying a resolver, which is the minimal `stack.yaml` configuration.
This error occurs when Stack is unable to parse a YAML configuration file, which could be a project-level `stack.yaml` file or a global `config.yaml` file. The error covers the following situations:
9
+
10
+
* The specified configuration file does not exist
11
+
* The configuration file is not well-formed YAML
12
+
* The file is well-formed YAML but does not match the expected data schema
13
+
14
+
The expected file formats are described in [the Stack documentation](https://docs.haskellstack.org/en/stable/yaml_configuration/).
0 commit comments