Skip to content

Commit

Permalink
Remove broken BoundedEnum instance for Int
Browse files Browse the repository at this point in the history
  • Loading branch information
garyb committed Mar 26, 2017
1 parent af104f7 commit 13f4698
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Data/Enum.purs
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,6 @@ instance boundedEnumBoolean :: BoundedEnum Boolean where
fromEnum false = 0
fromEnum true = 1

instance boundedEnumInt :: BoundedEnum Int where
cardinality = Cardinality (top - bottom)
toEnum = Just
fromEnum = id

instance boundedEnumChar :: BoundedEnum Char where
cardinality = Cardinality (toCharCode top - toCharCode bottom)
toEnum = charToEnum
Expand Down

0 comments on commit 13f4698

Please sign in to comment.