regular-0.3.4.4: Generic programming library for regular datatypes.

Copyright(c) 2010 Universiteit Utrecht
LicenseBSD3
Maintainergenerics@haskell.org
Stabilityexperimental
Portabilitynon-portable
Safe HaskellSafe-Inferred
LanguageHaskell98

Generics.Regular.Functions.Read

Contents

Description

Summary: Generic read. This module is not exported by Generics.Regular.Functions to avoid clashes with Prelude.

Synopsis

Read functions

class Read f where Source

Methods

hreader :: ReadPrec a -> Bool -> ReadPrec (f a) Source

Instances

Read U 
Read I 
Read a => Read (K a) 
(Selector s, Read f) => Read (S s f) 
(Constructor c, CountAtoms f, CountAtoms g, Read f, Read g) => Read (C c ((:*:) f g)) 
(Constructor c, Read (S s f)) => Read (C c (S s f)) 
(Constructor c, Read (K a)) => Read (C c (K a)) 
(Constructor c, Read I) => Read (C c I) 
Constructor c => Read (C c U) 
(Read f, Read g) => Read ((:*:) f g) 
(Read f, Read g) => Read ((:+:) f g) 

read :: (Regular a, Read (PF a)) => String -> a Source

readsPrec :: (Regular a, Read (PF a)) => Int -> ReadS a Source