arbiter-core-0.1.0.0
arbiter-core
Safe HaskellNone
LanguageGHC2024

Arbiter.Core.Enum

Description

Internal to the arbiter packages. Not covered by the PVP.

Text lookups for finite enums, and Show rendered as text.

Synopsis

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.

enumFromTextCI :: (Bounded a, Enum a) => Text -> (a -> Text) -> Text -> Either Text aSource #

enumFromText, ignoring case.

showText :: Show a => a -> TextSource #

A value's show as text.