uni-util-2.3.0.1: Utilities for the uniform workbench

Safe HaskellSafe-Inferred

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 whereSource

Methods

quickRead :: WrapRead toReadSource

Instances

StringClass stringClass => QuickRead stringClass 

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

data WrapShow toShow Source

Constructors

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

class QuickShow toShow whereSource

Methods

quickShow :: WrapShow toShowSource

Instances

StringClass stringClass => QuickShow stringClass 

qShow :: QuickShow toShow => Int -> toShow -> String -> StringSource