typed-encoding-0.2.0.0: Type safe string transformations

Safe HaskellSafe
LanguageHaskell2010

Data.TypedEncoding.Instances.ToEncString.Common

Contents

Description

Common ToEncString and FromEncString instances.

Orphan instances

IsString str => ToEncString "r-()" str Identity () Source # 
Instance details

Methods

toEncStringF :: () -> Identity (Enc ("r-()" ': []) () str) Source #

IsString str => ToEncString "r-Int-decimal" str Identity Int Source # 
Instance details

Methods

toEncStringF :: Int -> Identity (Enc ("r-Int-decimal" ': []) () str) Source #

IsString str => ToEncString "r-Word8-decimal" str Identity Word8 Source # 
Instance details

Methods

toEncStringF :: Word8 -> Identity (Enc ("r-Word8-decimal" ': []) () str) Source #

(IsStringR str, UnexpectedDecodeErr f, Applicative f) => FromEncString Word8 (f :: Type -> Type) str "r-Word8-decimal" Source # 
Instance details

Methods

fromEncStringF :: Enc ("r-Word8-decimal" ': []) () str -> f Word8 Source #