regular-0.3.4: Generic programming library for regular datatypes.

Portabilitynon-portable
Stabilityexperimental
Maintainergenerics@haskell.org

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 whereSource

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 -> aSource

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