symantic-parser-0.2.1.20210803: Parser combinators statically optimized and staged via typed meta-programming
Safe HaskellNone
LanguageHaskell2010

Parsers.Utils

Synopsis

Documentation

class CoerceEnum a b where Source #

Convenient helper to write generic grammars consuming either Word8 or Char.

Minimal complete definition

Nothing

Methods

coerceEnum :: a -> b Source #

default coerceEnum :: Enum a => Enum b => a -> b Source #

Instances

Instances details
CoerceEnum Char Char Source # 
Instance details

Defined in Parsers.Utils

Methods

coerceEnum :: Char -> Char Source #

CoerceEnum Char Word8 Source # 
Instance details

Defined in Parsers.Utils

CoerceEnum Word8 Char Source # 
Instance details

Defined in Parsers.Utils

w2c :: Word8 -> Char #

Conversion between Word8 and Char. Should compile to a no-op.