Skip to content

Commit 6ce527a

Browse files
authored
Merge pull request #10 from Risto-Stevcev/master
Added missing latin1 encoding
2 parents 763f7c9 + de2700d commit 6ce527a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Node/Encoding.purs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ data Encoding
1212
| UTF16LE
1313
| UCS2
1414
| Base64
15+
| Latin1
1516
| Binary
1617
| Hex
1718

@@ -21,6 +22,7 @@ instance showEncoding :: Show Encoding where
2122
show UTF16LE = "UTF16LE"
2223
show UCS2 = "UCS2"
2324
show Base64 = "Base64"
25+
show Latin1 = "Latin1"
2426
show Binary = "Binary"
2527
show Hex = "Hex"
2628

@@ -32,6 +34,7 @@ encodingToNode UTF8 = "utf8"
3234
encodingToNode UTF16LE = "utf16le"
3335
encodingToNode UCS2 = "ucs2"
3436
encodingToNode Base64 = "base64"
37+
encodingToNode Latin1 = "latin1"
3538
encodingToNode Binary = "binary"
3639
encodingToNode Hex = "hex"
3740

0 commit comments

Comments
 (0)