Skip to content

Commit 2bd4ceb

Browse files
committed
fix toEnum
1 parent 525691e commit 2bd4ceb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Data/Date/Component.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ instance enumYear :: Enum Year where
3535
instance boundedEnumYear :: BoundedEnum Year where
3636
cardinality = Cardinality 547580
3737
toEnum n
38-
| n >= (-271821) && n <= 275759 = Just (Year n)
38+
| n >= (-271820) && n <= 275759 = Just (Year n)
3939
| otherwise = Nothing
4040
fromEnum (Year n) = n
4141

0 commit comments

Comments
 (0)