We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents baac4cf + 8fe825b commit fa2ac47Copy full SHA for fa2ac47
src/Data/Enum.purs
@@ -162,6 +162,8 @@ toEnumWithDefaults low high x = case toEnum x of
162
-- | A type for the size of finite enumerations.
163
newtype Cardinality a = Cardinality Int
164
165
+type role Cardinality representational
166
+
167
derive instance newtypeCardinality :: Newtype (Cardinality a) _
168
derive newtype instance eqCardinality :: Eq (Cardinality a)
169
derive newtype instance ordCardinality :: Ord (Cardinality a)
0 commit comments