Skip to content

Commit

Permalink
Add missing errors placeholders (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
kl0tl authored Oct 10, 2020
1 parent 31e1624 commit 6e58684
Show file tree
Hide file tree
Showing 12 changed files with 255 additions and 0 deletions.
24 changes: 24 additions & 0 deletions errors/CannotDefinePrimModules.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# `CannotDefinePrimModules` Error

## Example

```purescript
module Prim where
```

```purescript
module Prim.ShortFailingExample where
```

## Cause

The Prim namespace is reserved by the compiler.

## Fix

- Rename the module to move it outside the Prim namespace:

```diff
-module Prim.ShortFailingExample where
+module ShortFailingExample where
```
21 changes: 21 additions & 0 deletions errors/CycleInTypeClassDeclaration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# `CycleInTypeClassDeclaration` Error

## Example

```purescript
module ShortFailingExample where
...
```

## Cause

Explain why a user might see this error.

## Fix

- Suggest possible solutions.

## Notes

- Additional notes.
21 changes: 21 additions & 0 deletions errors/DuplicateInstance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# `DuplicateInstance` Error

## Example

```purescript
module ShortFailingExample where
...
```

## Cause

Explain why a user might see this error.

## Fix

- Suggest possible solutions.

## Notes

- Additional notes.
21 changes: 21 additions & 0 deletions errors/DuplicateTypeClass.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# `DuplicateTypeClass` Error

## Example

```purescript
module ShortFailingExample where
...
```

## Cause

Explain why a user might see this error.

## Fix

- Suggest possible solutions.

## Notes

- Additional notes.
21 changes: 21 additions & 0 deletions errors/ErrorParsingCSTModule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# `ErrorParsingCSTModule` Error

## Example

```purescript
module ShortFailingExample where
...
```

## Cause

Explain why a user might see this error.

## Fix

- Suggest possible solutions.

## Notes

- Additional notes.
21 changes: 21 additions & 0 deletions errors/ExpectedTypeConstructor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# `ExpectedTypeConstructor` Error

## Example

```purescript
module ShortFailingExample where
...
```

## Cause

Explain why a user might see this error.

## Fix

- Suggest possible solutions.

## Notes

- Additional notes.
21 changes: 21 additions & 0 deletions errors/ImplicitQualifiedImportReExport.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# `ImplicitQualifiedImportReExport` Warning

## Example

```purescript
module ShortFailingExample where
...
```

## Cause

Explain why a user might see this warning.

## Fix

- Suggest possible solutions.

## Notes

- Additional notes.
21 changes: 21 additions & 0 deletions errors/InvalidDerivedInstance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# `InvalidDerivedInstance` Error

## Example

```purescript
module ShortFailingExample where
...
```

## Cause

Explain why a user might see this error.

## Fix

- Suggest possible solutions.

## Notes

- Additional notes.
21 changes: 21 additions & 0 deletions errors/MissingKindDeclaration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# `MissingKindDeclaration` Warning

## Example

```purescript
module ShortFailingExample where
...
```

## Cause

Explain why a user might see this warning.

## Fix

- Suggest possible solutions.

## Notes

- Additional notes.
21 changes: 21 additions & 0 deletions errors/MissingNewtypeSuperclassInstance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# `MissingNewtypeSuperclassInstance` Warning

## Example

```purescript
module ShortFailingExample where
...
```

## Cause

Explain why a user might see this warning.

## Fix

- Suggest possible solutions.

## Notes

- Additional notes.
21 changes: 21 additions & 0 deletions errors/UnusableDeclaration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# `UnusableDeclaration` Error

## Example

```purescript
module ShortFailingExample where
...
```

## Cause

Explain why a user might see this error.

## Fix

- Suggest possible solutions.

## Notes

- Additional notes.
21 changes: 21 additions & 0 deletions errors/UnverifiableSuperclassInstance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# `UnverifiableSuperclassInstance` Warning

## Example

```purescript
module ShortFailingExample where
...
```

## Cause

Explain why a user might see this warning.

## Fix

- Suggest possible solutions.

## Notes

- Additional notes.

0 comments on commit 6e58684

Please sign in to comment.