Skip to content

Commit

Permalink
Merge pull request #75 from bouzuya/fix-year-to-enum
Browse files Browse the repository at this point in the history
fix toEnum
  • Loading branch information
garyb authored Feb 9, 2019
2 parents 525691e + 2bd4ceb commit 9e76abe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Data/Date/Component.purs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ instance enumYear :: Enum Year where
instance boundedEnumYear :: BoundedEnum Year where
cardinality = Cardinality 547580
toEnum n
| n >= (-271821) && n <= 275759 = Just (Year n)
| n >= (-271820) && n <= 275759 = Just (Year n)
| otherwise = Nothing
fromEnum (Year n) = n

Expand Down

0 comments on commit 9e76abe

Please sign in to comment.