ttc-0.2.1.0: Textual Type Classes

CopyrightCopyright (c) 2019-2020 Travis Cardwell
LicenseMIT
Safe HaskellNone
LanguageHaskell2010

Data.TTC.Instances

Contents

Description

This module defines TTC Render and Parse instances for some basic data types. The definitions for the numeric data types are implemented using the Show and Read instances. The definitions for the character and textual data types are implemented without quoting.

To use these instances, explicitly import them as follows:

import Data.TTC.Instances ()

Orphan instances

Parse Char Source # 
Instance details

Methods

parse :: Textual t => t -> Either String Char Source #

Parse Double Source # 
Instance details

Methods

parse :: Textual t => t -> Either String Double Source #

Parse Float Source # 
Instance details

Methods

parse :: Textual t => t -> Either String Float Source #

Parse Int Source # 
Instance details

Methods

parse :: Textual t => t -> Either String Int Source #

Parse Int8 Source # 
Instance details

Methods

parse :: Textual t => t -> Either String Int8 Source #

Parse Int16 Source # 
Instance details

Methods

parse :: Textual t => t -> Either String Int16 Source #

Parse Int32 Source # 
Instance details

Methods

parse :: Textual t => t -> Either String Int32 Source #

Parse Int64 Source # 
Instance details

Methods

parse :: Textual t => t -> Either String Int64 Source #

Parse Integer Source # 
Instance details

Methods

parse :: Textual t => t -> Either String Integer Source #

Parse Word Source # 
Instance details

Methods

parse :: Textual t => t -> Either String Word Source #

Parse Word8 Source # 
Instance details

Methods

parse :: Textual t => t -> Either String Word8 Source #

Parse Word16 Source # 
Instance details

Methods

parse :: Textual t => t -> Either String Word16 Source #

Parse Word32 Source # 
Instance details

Methods

parse :: Textual t => t -> Either String Word32 Source #

Parse Word64 Source # 
Instance details

Methods

parse :: Textual t => t -> Either String Word64 Source #

Parse String Source # 
Instance details

Methods

parse :: Textual t => t -> Either String String Source #

Parse ByteString Source # 
Instance details

Parse ByteString Source # 
Instance details

Parse Text Source # 
Instance details

Methods

parse :: Textual t => t -> Either String Text Source #

Parse Text Source # 
Instance details

Methods

parse :: Textual t => t -> Either String Text Source #

Render Char Source # 
Instance details

Methods

render :: Textual t => Char -> t Source #

Render Double Source # 
Instance details

Methods

render :: Textual t => Double -> t Source #

Render Float Source # 
Instance details

Methods

render :: Textual t => Float -> t Source #

Render Int Source # 
Instance details

Methods

render :: Textual t => Int -> t Source #

Render Int8 Source # 
Instance details

Methods

render :: Textual t => Int8 -> t Source #

Render Int16 Source # 
Instance details

Methods

render :: Textual t => Int16 -> t Source #

Render Int32 Source # 
Instance details

Methods

render :: Textual t => Int32 -> t Source #

Render Int64 Source # 
Instance details

Methods

render :: Textual t => Int64 -> t Source #

Render Integer Source # 
Instance details

Methods

render :: Textual t => Integer -> t Source #

Render Word Source # 
Instance details

Methods

render :: Textual t => Word -> t Source #

Render Word8 Source # 
Instance details

Methods

render :: Textual t => Word8 -> t Source #

Render Word16 Source # 
Instance details

Methods

render :: Textual t => Word16 -> t Source #

Render Word32 Source # 
Instance details

Methods

render :: Textual t => Word32 -> t Source #

Render Word64 Source # 
Instance details

Methods

render :: Textual t => Word64 -> t Source #

Render String Source # 
Instance details

Methods

render :: Textual t => String -> t Source #

Render ByteString Source # 
Instance details

Methods

render :: Textual t => ByteString -> t Source #

Render ByteString Source # 
Instance details

Methods

render :: Textual t => ByteString -> t Source #

Render Text Source # 
Instance details

Methods

render :: Textual t => Text -> t Source #

Render Text Source # 
Instance details

Methods

render :: Textual t => Text -> t Source #