| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Arbiter.Core.Enum
Description
Internal to the arbiter packages. Not covered by the PVP.
Text lookups for finite enums, and Show rendered as text.
Documentation
enumFromText :: (Bounded a, Enum a) => Text -> (a -> Text) -> Text -> Either Text aSource #
The enum value whose name is the given text. The label names the enum in the error.