uni-util-2.3.0.2: Utilities for the uniform workbench

Safe HaskellSafe
LanguageHaskell98

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

Read read => WrapRead (read -> toRead) 

class QuickRead toRead where Source #

Minimal complete definition

quickRead

Methods

quickRead :: WrapRead toRead Source #

Instances
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

Show show => WrapShow (toShow -> show) 

class QuickShow toShow where Source #

Minimal complete definition

quickShow

Methods

quickShow :: WrapShow toShow Source #

Instances
StringClass stringClass => QuickShow stringClass Source # 
Instance details

Defined in Util.AtomString

Methods

quickShow :: WrapShow stringClass Source #

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