uni-util-2.3.0.3: Utilities for the uniform workbench
Safe HaskellSafe-Inferred
LanguageHaskell2010

Util.QuickReadShow

Description

QuickReadShow is designed for the rapid manufacture of read/show instances. To create such an instance you need to (a) instance quickRead; (b) instance Read/Show using a particular template. (Before April 2004 (b) was not part of the code; it now has to be added to deal with tougher GHC restrictions on overlapping instances.)

Documentation

data WrapRead toRead Source #

Constructors

forall read.Read read => WrapRead (read -> toRead) 

class QuickRead toRead where Source #

Methods

quickRead :: WrapRead toRead Source #

Instances

Instances details
StringClass stringClass => QuickRead stringClass Source # 
Instance details

Defined in Util.AtomString

Methods

quickRead :: WrapRead stringClass Source #

qRead :: QuickRead toRead => Int -> String -> [(toRead, String)] Source #

data WrapShow toShow Source #

Constructors

forall show.Show show => WrapShow (toShow -> show) 

class QuickShow toShow where Source #

Methods

quickShow :: WrapShow toShow Source #

Instances

Instances details
StringClass stringClass => QuickShow stringClass Source # 
Instance details

Defined in Util.AtomString

Methods

quickShow :: WrapShow stringClass Source #

qShow :: QuickShow toShow => Int -> toShow -> String -> String Source #