Skip to content

Commit

Permalink
Two small fixes to GHC-05380 and GHC-25078
Browse files Browse the repository at this point in the history
  • Loading branch information
BinderDavid committed Oct 12, 2024
1 parent eaae755 commit 9e1acd3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion message-index/messages/GHC-05380/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ severity: error
introduced: 9.6.1
---

A newtype constructor can only have a single constructor. If you want multiple
A newtype can only have a single constructor. If you want multiple
constructors, you should use `data` instead of `newtype`.

The reason that you need exactly one constructor is that `newtype` constructors
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
module InvalidPrecedence where

module InvalidPrecedence where

(⊚‿⊚) :: Int -> Int -> Int
(⊚‿⊚) = (+)

Expand Down

0 comments on commit 9e1acd3

Please sign in to comment.