Hoogle Search
Within LTS Haskell 24.46 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
enumMemberCId :: EnumerationMember -> Texthaskell-gi Data.GI.GIR.Enum No documentation available.
enumMemberDoc :: EnumerationMember -> Documentationhaskell-gi Data.GI.GIR.Enum No documentation available.
enumMemberName :: EnumerationMember -> Texthaskell-gi Data.GI.GIR.Enum No documentation available.
enumMemberValue :: EnumerationMember -> Int64haskell-gi Data.GI.GIR.Enum No documentation available.
enumMembers :: Enumeration -> [EnumerationMember]haskell-gi Data.GI.GIR.Enum No documentation available.
enumStorageBytes :: Enumeration -> Inthaskell-gi Data.GI.GIR.Enum Bytes used for storage of this struct.
enumTypeInit :: Enumeration -> Maybe Texthaskell-gi Data.GI.GIR.Enum No documentation available.
parseEnum :: Parser (Name, Enumeration)haskell-gi Data.GI.GIR.Enum Parse an "enumeration" element from the GIR file.
boundedEnumLaws :: (Enum a, Bounded a, Eq a, Arbitrary a, Show a) => Proxy a -> Lawsquickcheck-classes Test.QuickCheck.Classes Tests the same properties as enumLaws except that it requires the type to have a Bounded instance. These tests avoid taking the successor of the maximum element or the predecessor of the minimal element.
enumLaws :: (Enum a, Eq a, Arbitrary a, Show a) => Proxy a -> Lawsquickcheck-classes Test.QuickCheck.Classes Tests the following properties:
This only works for Enum types that are not bounded, meaning that succ and pred must be total. This means that these property tests work correctly for types like Integer but not for Int. Sadly, there is not a good way to test fromEnum and toEnum, since many types that have reasonable implementations for succ and pred have more inhabitants than Int does.