Skip to content

Commit 6670834

Browse files
Change ParseError from data to a newtype (#60)
1 parent 54ba93e commit 6670834

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Text/Parsing/StringParser.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ type Pos = Int
2626
type PosString = { str :: String, pos :: Pos }
2727

2828
-- | The type of parsing errors.
29-
data ParseError = ParseError String
29+
newtype ParseError = ParseError String
3030

3131
instance showParseError :: Show ParseError where
3232
show (ParseError msg) = msg

0 commit comments

Comments
 (0)