base-compat-0.14.1: A compatibility layer for base
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.Read.Compat

Synopsis

The Read class

class Read a where #

Minimal complete definition

readsPrec | readPrec

Instances

Instances details
Read Void 
Instance details

Defined in GHC.Internal.Read

Read All 
Instance details

Defined in GHC.Internal.Data.Semigroup.Internal

Read Any 
Instance details

Defined in GHC.Internal.Data.Semigroup.Internal

Read Version 
Instance details

Defined in GHC.Internal.Data.Version

Read CBool 
Instance details

Defined in GHC.Internal.Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CBool #

readList :: ReadS [CBool] #

readPrec :: ReadPrec CBool #

readListPrec :: ReadPrec [CBool] #

Read CChar 
Instance details

Defined in GHC.Internal.Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CChar #

readList :: ReadS [CChar] #

readPrec :: ReadPrec CChar #

readListPrec :: ReadPrec [CChar] #

Read CClock 
Instance details

Defined in GHC.Internal.Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CClock #

readList :: ReadS [CClock] #

readPrec :: ReadPrec CClock #

readListPrec :: ReadPrec [CClock] #

Read CDouble 
Instance details

Defined in GHC.Internal.Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CDouble #

readList :: ReadS [CDouble] #

readPrec :: ReadPrec CDouble #

readListPrec :: ReadPrec [CDouble] #

Read CFloat 
Instance details

Defined in GHC.Internal.Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CFloat #

readList :: ReadS [CFloat] #

readPrec :: ReadPrec CFloat #

readListPrec :: ReadPrec [CFloat] #

Read CInt 
Instance details

Defined in GHC.Internal.Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CInt #

readList :: ReadS [CInt] #

readPrec :: ReadPrec CInt #

readListPrec :: ReadPrec [CInt] #

Read CIntMax 
Instance details

Defined in GHC.Internal.Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CIntMax #

readList :: ReadS [CIntMax] #

readPrec :: ReadPrec CIntMax #

readListPrec :: ReadPrec [CIntMax] #

Read CIntPtr 
Instance details

Defined in GHC.Internal.Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CIntPtr #

readList :: ReadS [CIntPtr] #

readPrec :: ReadPrec CIntPtr #

readListPrec :: ReadPrec [CIntPtr] #

Read CLLong 
Instance details

Defined in GHC.Internal.Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CLLong #

readList :: ReadS [CLLong] #

readPrec :: ReadPrec CLLong #

readListPrec :: ReadPrec [CLLong] #

Read CLong 
Instance details

Defined in GHC.Internal.Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CLong #

readList :: ReadS [CLong] #

readPrec :: ReadPrec CLong #

readListPrec :: ReadPrec [CLong] #

Read CPtrdiff 
Instance details

Defined in GHC.Internal.Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CPtrdiff #

readList :: ReadS [CPtrdiff] #

readPrec :: ReadPrec CPtrdiff #

readListPrec :: ReadPrec [CPtrdiff] #

Read CSChar 
Instance details

Defined in GHC.Internal.Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CSChar #

readList :: ReadS [CSChar] #

readPrec :: ReadPrec CSChar #

readListPrec :: ReadPrec [CSChar] #

Read CSUSeconds 
Instance details

Defined in GHC.Internal.Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CSUSeconds #

readList :: ReadS [CSUSeconds] #

readPrec :: ReadPrec CSUSeconds #

readListPrec :: ReadPrec [CSUSeconds] #

Read CShort 
Instance details

Defined in GHC.Internal.Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CShort #

readList :: ReadS [CShort] #

readPrec :: ReadPrec CShort #

readListPrec :: ReadPrec [CShort] #

Read CSigAtomic 
Instance details

Defined in GHC.Internal.Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CSigAtomic #

readList :: ReadS [CSigAtomic] #

readPrec :: ReadPrec CSigAtomic #

readListPrec :: ReadPrec [CSigAtomic] #

Read CSize 
Instance details

Defined in GHC.Internal.Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CSize #

readList :: ReadS [CSize] #

readPrec :: ReadPrec CSize #

readListPrec :: ReadPrec [CSize] #

Read CTime 
Instance details

Defined in GHC.Internal.Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CTime #

readList :: ReadS [CTime] #

readPrec :: ReadPrec CTime #

readListPrec :: ReadPrec [CTime] #

Read CUChar 
Instance details

Defined in GHC.Internal.Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CUChar #

readList :: ReadS [CUChar] #

readPrec :: ReadPrec CUChar #

readListPrec :: ReadPrec [CUChar] #

Read CUInt 
Instance details

Defined in GHC.Internal.Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CUInt #

readList :: ReadS [CUInt] #

readPrec :: ReadPrec CUInt #

readListPrec :: ReadPrec [CUInt] #

Read CUIntMax 
Instance details

Defined in GHC.Internal.Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CUIntMax #

readList :: ReadS [CUIntMax] #

readPrec :: ReadPrec CUIntMax #

readListPrec :: ReadPrec [CUIntMax] #

Read CUIntPtr 
Instance details

Defined in GHC.Internal.Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CUIntPtr #

readList :: ReadS [CUIntPtr] #

readPrec :: ReadPrec CUIntPtr #

readListPrec :: ReadPrec [CUIntPtr] #

Read CULLong 
Instance details

Defined in GHC.Internal.Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CULLong #

readList :: ReadS [CULLong] #

readPrec :: ReadPrec CULLong #

readListPrec :: ReadPrec [CULLong] #

Read CULong 
Instance details

Defined in GHC.Internal.Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CULong #

readList :: ReadS [CULong] #

readPrec :: ReadPrec CULong #

readListPrec :: ReadPrec [CULong] #

Read CUSeconds 
Instance details

Defined in GHC.Internal.Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CUSeconds #

readList :: ReadS [CUSeconds] #

readPrec :: ReadPrec CUSeconds #

readListPrec :: ReadPrec [CUSeconds] #

Read CUShort 
Instance details

Defined in GHC.Internal.Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CUShort #

readList :: ReadS [CUShort] #

readPrec :: ReadPrec CUShort #

readListPrec :: ReadPrec [CUShort] #

Read CWchar 
Instance details

Defined in GHC.Internal.Foreign.C.Types

Methods

readsPrec :: Int -> ReadS CWchar #

readList :: ReadS [CWchar] #

readPrec :: ReadPrec CWchar #

readListPrec :: ReadPrec [CWchar] #

Read IntPtr 
Instance details

Defined in GHC.Internal.Foreign.Ptr

Read WordPtr 
Instance details

Defined in GHC.Internal.Foreign.Ptr

Read Associativity 
Instance details

Defined in GHC.Internal.Generics

Methods

readsPrec :: Int -> ReadS Associativity #

readList :: ReadS [Associativity] #

readPrec :: ReadPrec Associativity #

readListPrec :: ReadPrec [Associativity] #

Read DecidedStrictness 
Instance details

Defined in GHC.Internal.Generics

Methods

readsPrec :: Int -> ReadS DecidedStrictness #

readList :: ReadS [DecidedStrictness] #

readPrec :: ReadPrec DecidedStrictness #

readListPrec :: ReadPrec [DecidedStrictness] #

Read Fixity 
Instance details

Defined in GHC.Internal.Generics

Methods

readsPrec :: Int -> ReadS Fixity #

readList :: ReadS [Fixity] #

readPrec :: ReadPrec Fixity #

readListPrec :: ReadPrec [Fixity] #

Read SourceStrictness 
Instance details

Defined in GHC.Internal.Generics

Methods

readsPrec :: Int -> ReadS SourceStrictness #

readList :: ReadS [SourceStrictness] #

readPrec :: ReadPrec SourceStrictness #

readListPrec :: ReadPrec [SourceStrictness] #

Read SourceUnpackedness 
Instance details

Defined in GHC.Internal.Generics

Methods

readsPrec :: Int -> ReadS SourceUnpackedness #

readList :: ReadS [SourceUnpackedness] #

readPrec :: ReadPrec SourceUnpackedness #

readListPrec :: ReadPrec [SourceUnpackedness] #

Read SeekMode 
Instance details

Defined in GHC.Internal.IO.Device

Read ExitCode 
Instance details

Defined in GHC.Internal.IO.Exception

Read BufferMode 
Instance details

Defined in GHC.Internal.IO.Handle.Types

Read Newline 
Instance details

Defined in GHC.Internal.IO.Handle.Types

Read NewlineMode 
Instance details

Defined in GHC.Internal.IO.Handle.Types

Read IOMode 
Instance details

Defined in GHC.Internal.IO.IOMode

Read Int16 
Instance details

Defined in GHC.Internal.Int

Read Int32 
Instance details

Defined in GHC.Internal.Int

Read Int64 
Instance details

Defined in GHC.Internal.Int

Read Int8 
Instance details

Defined in GHC.Internal.Int

Read CBlkCnt 
Instance details

Defined in GHC.Internal.System.Posix.Types

Methods

readsPrec :: Int -> ReadS CBlkCnt #

readList :: ReadS [CBlkCnt] #

readPrec :: ReadPrec CBlkCnt #

readListPrec :: ReadPrec [CBlkCnt] #

Read CBlkSize 
Instance details

Defined in GHC.Internal.System.Posix.Types

Methods

readsPrec :: Int -> ReadS CBlkSize #

readList :: ReadS [CBlkSize] #

readPrec :: ReadPrec CBlkSize #

readListPrec :: ReadPrec [CBlkSize] #

Read CCc 
Instance details

Defined in GHC.Internal.System.Posix.Types

Methods

readsPrec :: Int -> ReadS CCc #

readList :: ReadS [CCc] #

readPrec :: ReadPrec CCc #

readListPrec :: ReadPrec [CCc] #

Read CClockId 
Instance details

Defined in GHC.Internal.System.Posix.Types

Methods

readsPrec :: Int -> ReadS CClockId #

readList :: ReadS [CClockId] #

readPrec :: ReadPrec CClockId #

readListPrec :: ReadPrec [CClockId] #

Read CDev 
Instance details

Defined in GHC.Internal.System.Posix.Types

Methods

readsPrec :: Int -> ReadS CDev #

readList :: ReadS [CDev] #

readPrec :: ReadPrec CDev #

readListPrec :: ReadPrec [CDev] #

Read CFsBlkCnt 
Instance details

Defined in GHC.Internal.System.Posix.Types

Methods

readsPrec :: Int -> ReadS CFsBlkCnt #

readList :: ReadS [CFsBlkCnt] #

readPrec :: ReadPrec CFsBlkCnt #

readListPrec :: ReadPrec [CFsBlkCnt] #

Read CFsFilCnt 
Instance details

Defined in GHC.Internal.System.Posix.Types

Methods

readsPrec :: Int -> ReadS CFsFilCnt #

readList :: ReadS [CFsFilCnt] #

readPrec :: ReadPrec CFsFilCnt #

readListPrec :: ReadPrec [CFsFilCnt] #

Read CGid 
Instance details

Defined in GHC.Internal.System.Posix.Types

Methods

readsPrec :: Int -> ReadS CGid #

readList :: ReadS [CGid] #

readPrec :: ReadPrec CGid #

readListPrec :: ReadPrec [CGid] #

Read CId 
Instance details

Defined in GHC.Internal.System.Posix.Types

Methods

readsPrec :: Int -> ReadS CId #

readList :: ReadS [CId] #

readPrec :: ReadPrec CId #

readListPrec :: ReadPrec [CId] #

Read CIno 
Instance details

Defined in GHC.Internal.System.Posix.Types

Methods

readsPrec :: Int -> ReadS CIno #

readList :: ReadS [CIno] #

readPrec :: ReadPrec CIno #

readListPrec :: ReadPrec [CIno] #

Read CKey 
Instance details

Defined in GHC.Internal.System.Posix.Types

Methods

readsPrec :: Int -> ReadS CKey #

readList :: ReadS [CKey] #

readPrec :: ReadPrec CKey #

readListPrec :: ReadPrec [CKey] #

Read CMode 
Instance details

Defined in GHC.Internal.System.Posix.Types

Methods

readsPrec :: Int -> ReadS CMode #

readList :: ReadS [CMode] #

readPrec :: ReadPrec CMode #

readListPrec :: ReadPrec [CMode] #

Read CNfds 
Instance details

Defined in GHC.Internal.System.Posix.Types

Methods

readsPrec :: Int -> ReadS CNfds #

readList :: ReadS [CNfds] #

readPrec :: ReadPrec CNfds #

readListPrec :: ReadPrec [CNfds] #

Read CNlink 
Instance details

Defined in GHC.Internal.System.Posix.Types

Methods

readsPrec :: Int -> ReadS CNlink #

readList :: ReadS [CNlink] #

readPrec :: ReadPrec CNlink #

readListPrec :: ReadPrec [CNlink] #

Read COff 
Instance details

Defined in GHC.Internal.System.Posix.Types

Methods

readsPrec :: Int -> ReadS COff #

readList :: ReadS [COff] #

readPrec :: ReadPrec COff #

readListPrec :: ReadPrec [COff] #

Read CPid 
Instance details

Defined in GHC.Internal.System.Posix.Types

Methods

readsPrec :: Int -> ReadS CPid #

readList :: ReadS [CPid] #

readPrec :: ReadPrec CPid #

readListPrec :: ReadPrec [CPid] #

Read CRLim 
Instance details

Defined in GHC.Internal.System.Posix.Types

Methods

readsPrec :: Int -> ReadS CRLim #

readList :: ReadS [CRLim] #

readPrec :: ReadPrec CRLim #

readListPrec :: ReadPrec [CRLim] #

Read CSocklen 
Instance details

Defined in GHC.Internal.System.Posix.Types

Methods

readsPrec :: Int -> ReadS CSocklen #

readList :: ReadS [CSocklen] #

readPrec :: ReadPrec CSocklen #

readListPrec :: ReadPrec [CSocklen] #

Read CSpeed 
Instance details

Defined in GHC.Internal.System.Posix.Types

Methods

readsPrec :: Int -> ReadS CSpeed #

readList :: ReadS [CSpeed] #

readPrec :: ReadPrec CSpeed #

readListPrec :: ReadPrec [CSpeed] #

Read CSsize 
Instance details

Defined in GHC.Internal.System.Posix.Types

Methods

readsPrec :: Int -> ReadS CSsize #

readList :: ReadS [CSsize] #

readPrec :: ReadPrec CSsize #

readListPrec :: ReadPrec [CSsize] #

Read CTcflag 
Instance details

Defined in GHC.Internal.System.Posix.Types

Methods

readsPrec :: Int -> ReadS CTcflag #

readList :: ReadS [CTcflag] #

readPrec :: ReadPrec CTcflag #

readListPrec :: ReadPrec [CTcflag] #

Read CUid 
Instance details

Defined in GHC.Internal.System.Posix.Types

Methods

readsPrec :: Int -> ReadS CUid #

readList :: ReadS [CUid] #

readPrec :: ReadPrec CUid #

readListPrec :: ReadPrec [CUid] #

Read Fd 
Instance details

Defined in GHC.Internal.System.Posix.Types

Methods

readsPrec :: Int -> ReadS Fd #

readList :: ReadS [Fd] #

readPrec :: ReadPrec Fd #

readListPrec :: ReadPrec [Fd] #

Read Lexeme 
Instance details

Defined in GHC.Internal.Read

Read GeneralCategory 
Instance details

Defined in GHC.Internal.Read

Methods

readsPrec :: Int -> ReadS GeneralCategory #

readList :: ReadS [GeneralCategory] #

readPrec :: ReadPrec GeneralCategory #

readListPrec :: ReadPrec [GeneralCategory] #

Read Word16 
Instance details

Defined in GHC.Internal.Read

Read Word32 
Instance details

Defined in GHC.Internal.Read

Read Word64 
Instance details

Defined in GHC.Internal.Read

Read Word8 
Instance details

Defined in GHC.Internal.Read

Read Ordering 
Instance details

Defined in GHC.Internal.Read

Read RTLDFlags 
Instance details

Defined in System.Posix.DynamicLinker.Prim

Methods

readsPrec :: Int -> ReadS RTLDFlags #

readList :: ReadS [RTLDFlags] #

readPrec :: ReadPrec RTLDFlags #

readListPrec :: ReadPrec [RTLDFlags] #

Read Integer 
Instance details

Defined in GHC.Internal.Read

Read Natural 
Instance details

Defined in GHC.Internal.Read

Read () 
Instance details

Defined in GHC.Internal.Read

Methods

readsPrec :: Int -> ReadS () #

readList :: ReadS [()] #

readPrec :: ReadPrec () #

readListPrec :: ReadPrec [()] #

Read Bool 
Instance details

Defined in GHC.Internal.Read

Read Char 
Instance details

Defined in GHC.Internal.Read

Read Double 
Instance details

Defined in GHC.Internal.Read

Read Float 
Instance details

Defined in GHC.Internal.Read

Read Int 
Instance details

Defined in GHC.Internal.Read

Read Word 
Instance details

Defined in GHC.Internal.Read

Read a => Read (Complex a) 
Instance details

Defined in Data.Complex

Read a => Read (First a) 
Instance details

Defined in Data.Semigroup

Read a => Read (Last a) 
Instance details

Defined in Data.Semigroup

Read a => Read (Max a) 
Instance details

Defined in Data.Semigroup

Read a => Read (Min a) 
Instance details

Defined in Data.Semigroup

Read m => Read (WrappedMonoid m) 
Instance details

Defined in Data.Semigroup

Read a => Read (NonEmpty a) 
Instance details

Defined in GHC.Internal.Read

Read a => Read (And a) 
Instance details

Defined in GHC.Internal.Data.Bits

Read a => Read (Iff a) 
Instance details

Defined in GHC.Internal.Data.Bits

Read a => Read (Ior a) 
Instance details

Defined in GHC.Internal.Data.Bits

Read a => Read (Xor a) 
Instance details

Defined in GHC.Internal.Data.Bits

Read a => Read (Identity a) 
Instance details

Defined in GHC.Internal.Data.Functor.Identity

Read a => Read (First a) 
Instance details

Defined in GHC.Internal.Data.Monoid

Read a => Read (Last a) 
Instance details

Defined in GHC.Internal.Data.Monoid

Read a => Read (Dual a) 
Instance details

Defined in GHC.Internal.Data.Semigroup.Internal

Read a => Read (Product a) 
Instance details

Defined in GHC.Internal.Data.Semigroup.Internal

Read a => Read (Sum a) 
Instance details

Defined in GHC.Internal.Data.Semigroup.Internal

Read p => Read (Par1 p) 
Instance details

Defined in GHC.Internal.Generics

Methods

readsPrec :: Int -> ReadS (Par1 p) #

readList :: ReadS [Par1 p] #

readPrec :: ReadPrec (Par1 p) #

readListPrec :: ReadPrec [Par1 p] #

(Integral a, Read a) => Read (Ratio a) 
Instance details

Defined in GHC.Internal.Read

Read a => Read (Maybe a) 
Instance details

Defined in GHC.Internal.Read

Read a => Read (Solo a) 
Instance details

Defined in GHC.Internal.Read

Read a => Read [a] 
Instance details

Defined in GHC.Internal.Read

Methods

readsPrec :: Int -> ReadS [a] #

readList :: ReadS [[a]] #

readPrec :: ReadPrec [a] #

readListPrec :: ReadPrec [[a]] #

HasResolution a => Read (Fixed a) 
Instance details

Defined in Data.Fixed

Methods

readsPrec :: Int -> ReadS (Fixed a) #

readList :: ReadS [Fixed a] #

readPrec :: ReadPrec (Fixed a) #

readListPrec :: ReadPrec [Fixed a] #

(Read a, Read b) => Read (Arg a b) 
Instance details

Defined in Data.Semigroup

Methods

readsPrec :: Int -> ReadS (Arg a b) #

readList :: ReadS [Arg a b] #

readPrec :: ReadPrec (Arg a b) #

readListPrec :: ReadPrec [Arg a b] #

(Ix a, Read a, Read b) => Read (Array a b) 
Instance details

Defined in GHC.Internal.Read

Methods

readsPrec :: Int -> ReadS (Array a b) #

readList :: ReadS [Array a b] #

readPrec :: ReadPrec (Array a b) #

readListPrec :: ReadPrec [Array a b] #

(Read a, Read b) => Read (Either a b) 
Instance details

Defined in GHC.Internal.Data.Either

Read (Proxy t) 
Instance details

Defined in GHC.Internal.Data.Proxy

Read (U1 p) 
Instance details

Defined in GHC.Internal.Generics

Methods

readsPrec :: Int -> ReadS (U1 p) #

readList :: ReadS [U1 p] #

readPrec :: ReadPrec (U1 p) #

readListPrec :: ReadPrec [U1 p] #

Read (V1 p) 
Instance details

Defined in GHC.Internal.Generics

Methods

readsPrec :: Int -> ReadS (V1 p) #

readList :: ReadS [V1 p] #

readPrec :: ReadPrec (V1 p) #

readListPrec :: ReadPrec [V1 p] #

(Read a, Read b) => Read (a, b) 
Instance details

Defined in GHC.Internal.Read

Methods

readsPrec :: Int -> ReadS (a, b) #

readList :: ReadS [(a, b)] #

readPrec :: ReadPrec (a, b) #

readListPrec :: ReadPrec [(a, b)] #

Read a => Read (Const a b) 
Instance details

Defined in GHC.Internal.Data.Functor.Const

Read (f a) => Read (Ap f a) 
Instance details

Defined in GHC.Internal.Data.Monoid

Methods

readsPrec :: Int -> ReadS (Ap f a) #

readList :: ReadS [Ap f a] #

readPrec :: ReadPrec (Ap f a) #

readListPrec :: ReadPrec [Ap f a] #

Read (f a) => Read (Alt f a) 
Instance details

Defined in GHC.Internal.Data.Semigroup.Internal

Methods

readsPrec :: Int -> ReadS (Alt f a) #

readList :: ReadS [Alt f a] #

readPrec :: ReadPrec (Alt f a) #

readListPrec :: ReadPrec [Alt f a] #

Coercible a b => Read (Coercion a b) 
Instance details

Defined in GHC.Internal.Data.Type.Coercion

a ~ b => Read (a :~: b) 
Instance details

Defined in GHC.Internal.Data.Type.Equality

Methods

readsPrec :: Int -> ReadS (a :~: b) #

readList :: ReadS [a :~: b] #

readPrec :: ReadPrec (a :~: b) #

readListPrec :: ReadPrec [a :~: b] #

Read (f p) => Read (Rec1 f p) 
Instance details

Defined in GHC.Internal.Generics

Methods

readsPrec :: Int -> ReadS (Rec1 f p) #

readList :: ReadS [Rec1 f p] #

readPrec :: ReadPrec (Rec1 f p) #

readListPrec :: ReadPrec [Rec1 f p] #

(Read a, Read b, Read c) => Read (a, b, c) 
Instance details

Defined in GHC.Internal.Read

Methods

readsPrec :: Int -> ReadS (a, b, c) #

readList :: ReadS [(a, b, c)] #

readPrec :: ReadPrec (a, b, c) #

readListPrec :: ReadPrec [(a, b, c)] #

(Read (f a), Read (g a)) => Read (Product f g a) 
Instance details

Defined in Data.Functor.Product

Methods

readsPrec :: Int -> ReadS (Product f g a) #

readList :: ReadS [Product f g a] #

readPrec :: ReadPrec (Product f g a) #

readListPrec :: ReadPrec [Product f g a] #

(Read (f a), Read (g a)) => Read (Sum f g a) 
Instance details

Defined in Data.Functor.Sum

Methods

readsPrec :: Int -> ReadS (Sum f g a) #

readList :: ReadS [Sum f g a] #

readPrec :: ReadPrec (Sum f g a) #

readListPrec :: ReadPrec [Sum f g a] #

a ~~ b => Read (a :~~: b) 
Instance details

Defined in GHC.Internal.Data.Type.Equality

Methods

readsPrec :: Int -> ReadS (a :~~: b) #

readList :: ReadS [a :~~: b] #

readPrec :: ReadPrec (a :~~: b) #

readListPrec :: ReadPrec [a :~~: b] #

(Read (f p), Read (g p)) => Read ((f :*: g) p) 
Instance details

Defined in GHC.Internal.Generics

Methods

readsPrec :: Int -> ReadS ((f :*: g) p) #

readList :: ReadS [(f :*: g) p] #

readPrec :: ReadPrec ((f :*: g) p) #

readListPrec :: ReadPrec [(f :*: g) p] #

(Read (f p), Read (g p)) => Read ((f :+: g) p) 
Instance details

Defined in GHC.Internal.Generics

Methods

readsPrec :: Int -> ReadS ((f :+: g) p) #

readList :: ReadS [(f :+: g) p] #

readPrec :: ReadPrec ((f :+: g) p) #

readListPrec :: ReadPrec [(f :+: g) p] #

Read c => Read (K1 i c p) 
Instance details

Defined in GHC.Internal.Generics

Methods

readsPrec :: Int -> ReadS (K1 i c p) #

readList :: ReadS [K1 i c p] #

readPrec :: ReadPrec (K1 i c p) #

readListPrec :: ReadPrec [K1 i c p] #

(Read a, Read b, Read c, Read d) => Read (a, b, c, d) 
Instance details

Defined in GHC.Internal.Read

Methods

readsPrec :: Int -> ReadS (a, b, c, d) #

readList :: ReadS [(a, b, c, d)] #

readPrec :: ReadPrec (a, b, c, d) #

readListPrec :: ReadPrec [(a, b, c, d)] #

Read (f (g a)) => Read (Compose f g a) 
Instance details

Defined in Data.Functor.Compose

Methods

readsPrec :: Int -> ReadS (Compose f g a) #

readList :: ReadS [Compose f g a] #

readPrec :: ReadPrec (Compose f g a) #

readListPrec :: ReadPrec [Compose f g a] #

Read (f (g p)) => Read ((f :.: g) p) 
Instance details

Defined in GHC.Internal.Generics

Methods

readsPrec :: Int -> ReadS ((f :.: g) p) #

readList :: ReadS [(f :.: g) p] #

readPrec :: ReadPrec ((f :.: g) p) #

readListPrec :: ReadPrec [(f :.: g) p] #

Read (f p) => Read (M1 i c f p) 
Instance details

Defined in GHC.Internal.Generics

Methods

readsPrec :: Int -> ReadS (M1 i c f p) #

readList :: ReadS [M1 i c f p] #

readPrec :: ReadPrec (M1 i c f p) #

readListPrec :: ReadPrec [M1 i c f p] #

(Read a, Read b, Read c, Read d, Read e) => Read (a, b, c, d, e) 
Instance details

Defined in GHC.Internal.Read

Methods

readsPrec :: Int -> ReadS (a, b, c, d, e) #

readList :: ReadS [(a, b, c, d, e)] #

readPrec :: ReadPrec (a, b, c, d, e) #

readListPrec :: ReadPrec [(a, b, c, d, e)] #

(Read a, Read b, Read c, Read d, Read e, Read f) => Read (a, b, c, d, e, f) 
Instance details

Defined in GHC.Internal.Read

Methods

readsPrec :: Int -> ReadS (a, b, c, d, e, f) #

readList :: ReadS [(a, b, c, d, e, f)] #

readPrec :: ReadPrec (a, b, c, d, e, f) #

readListPrec :: ReadPrec [(a, b, c, d, e, f)] #

(Read a, Read b, Read c, Read d, Read e, Read f, Read g) => Read (a, b, c, d, e, f, g) 
Instance details

Defined in GHC.Internal.Read

Methods

readsPrec :: Int -> ReadS (a, b, c, d, e, f, g) #

readList :: ReadS [(a, b, c, d, e, f, g)] #

readPrec :: ReadPrec (a, b, c, d, e, f, g) #

readListPrec :: ReadPrec [(a, b, c, d, e, f, g)] #

(Read a, Read b, Read c, Read d, Read e, Read f, Read g, Read h) => Read (a, b, c, d, e, f, g, h) 
Instance details

Defined in GHC.Internal.Read

Methods

readsPrec :: Int -> ReadS (a, b, c, d, e, f, g, h) #

readList :: ReadS [(a, b, c, d, e, f, g, h)] #

readPrec :: ReadPrec (a, b, c, d, e, f, g, h) #

readListPrec :: ReadPrec [(a, b, c, d, e, f, g, h)] #

(Read a, Read b, Read c, Read d, Read e, Read f, Read g, Read h, Read i) => Read (a, b, c, d, e, f, g, h, i) 
Instance details

Defined in GHC.Internal.Read

Methods

readsPrec :: Int -> ReadS (a, b, c, d, e, f, g, h, i) #

readList :: ReadS [(a, b, c, d, e, f, g, h, i)] #

readPrec :: ReadPrec (a, b, c, d, e, f, g, h, i) #

readListPrec :: ReadPrec [(a, b, c, d, e, f, g, h, i)] #

(Read a, Read b, Read c, Read d, Read e, Read f, Read g, Read h, Read i, Read j) => Read (a, b, c, d, e, f, g, h, i, j) 
Instance details

Defined in GHC.Internal.Read

Methods

readsPrec :: Int -> ReadS (a, b, c, d, e, f, g, h, i, j) #

readList :: ReadS [(a, b, c, d, e, f, g, h, i, j)] #

readPrec :: ReadPrec (a, b, c, d, e, f, g, h, i, j) #

readListPrec :: ReadPrec [(a, b, c, d, e, f, g, h, i, j)] #

(Read a, Read b, Read c, Read d, Read e, Read f, Read g, Read h, Read i, Read j, Read k) => Read (a, b, c, d, e, f, g, h, i, j, k) 
Instance details

Defined in GHC.Internal.Read

Methods

readsPrec :: Int -> ReadS (a, b, c, d, e, f, g, h, i, j, k) #

readList :: ReadS [(a, b, c, d, e, f, g, h, i, j, k)] #

readPrec :: ReadPrec (a, b, c, d, e, f, g, h, i, j, k) #

readListPrec :: ReadPrec [(a, b, c, d, e, f, g, h, i, j, k)] #

(Read a, Read b, Read c, Read d, Read e, Read f, Read g, Read h, Read i, Read j, Read k, Read l) => Read (a, b, c, d, e, f, g, h, i, j, k, l) 
Instance details

Defined in GHC.Internal.Read

Methods

readsPrec :: Int -> ReadS (a, b, c, d, e, f, g, h, i, j, k, l) #

readList :: ReadS [(a, b, c, d, e, f, g, h, i, j, k, l)] #

readPrec :: ReadPrec (a, b, c, d, e, f, g, h, i, j, k, l) #

readListPrec :: ReadPrec [(a, b, c, d, e, f, g, h, i, j, k, l)] #

(Read a, Read b, Read c, Read d, Read e, Read f, Read g, Read h, Read i, Read j, Read k, Read l, Read m) => Read (a, b, c, d, e, f, g, h, i, j, k, l, m) 
Instance details

Defined in GHC.Internal.Read

Methods

readsPrec :: Int -> ReadS (a, b, c, d, e, f, g, h, i, j, k, l, m) #

readList :: ReadS [(a, b, c, d, e, f, g, h, i, j, k, l, m)] #

readPrec :: ReadPrec (a, b, c, d, e, f, g, h, i, j, k, l, m) #

readListPrec :: ReadPrec [(a, b, c, d, e, f, g, h, i, j, k, l, m)] #

(Read a, Read b, Read c, Read d, Read e, Read f, Read g, Read h, Read i, Read j, Read k, Read l, Read m, Read n) => Read (a, b, c, d, e, f, g, h, i, j, k, l, m, n) 
Instance details

Defined in GHC.Internal.Read

Methods

readsPrec :: Int -> ReadS (a, b, c, d, e, f, g, h, i, j, k, l, m, n) #

readList :: ReadS [(a, b, c, d, e, f, g, h, i, j, k, l, m, n)] #

readPrec :: ReadPrec (a, b, c, d, e, f, g, h, i, j, k, l, m, n) #

readListPrec :: ReadPrec [(a, b, c, d, e, f, g, h, i, j, k, l, m, n)] #

(Read a, Read b, Read c, Read d, Read e, Read f, Read g, Read h, Read i, Read j, Read k, Read l, Read m, Read n, Read o) => Read (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) 
Instance details

Defined in GHC.Internal.Read

Methods

readsPrec :: Int -> ReadS (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) #

readList :: ReadS [(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)] #

readPrec :: ReadPrec (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) #

readListPrec :: ReadPrec [(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)] #

type ReadS a = String -> [(a, String)] #

Haskell 2010 functions

reads :: Read a => ReadS a #

read :: Read a => String -> a #

readParen :: Bool -> ReadS a -> ReadS a #

New parsing functions

data ReadPrec a #

Instances

Instances details
Alternative ReadPrec 
Instance details

Defined in GHC.Internal.Text.ParserCombinators.ReadPrec

Methods

empty :: ReadPrec a

(<|>) :: ReadPrec a -> ReadPrec a -> ReadPrec a

some :: ReadPrec a -> ReadPrec [a]

many :: ReadPrec a -> ReadPrec [a]

Applicative ReadPrec 
Instance details

Defined in GHC.Internal.Text.ParserCombinators.ReadPrec

Methods

pure :: a -> ReadPrec a #

(<*>) :: ReadPrec (a -> b) -> ReadPrec a -> ReadPrec b #

liftA2 :: (a -> b -> c) -> ReadPrec a -> ReadPrec b -> ReadPrec c #

(*>) :: ReadPrec a -> ReadPrec b -> ReadPrec b #

(<*) :: ReadPrec a -> ReadPrec b -> ReadPrec a #

Functor ReadPrec 
Instance details

Defined in GHC.Internal.Text.ParserCombinators.ReadPrec

Methods

fmap :: (a -> b) -> ReadPrec a -> ReadPrec b #

(<$) :: a -> ReadPrec b -> ReadPrec a #

Monad ReadPrec 
Instance details

Defined in GHC.Internal.Text.ParserCombinators.ReadPrec

Methods

(>>=) :: ReadPrec a -> (a -> ReadPrec b) -> ReadPrec b #

(>>) :: ReadPrec a -> ReadPrec b -> ReadPrec b #

return :: a -> ReadPrec a #

MonadPlus ReadPrec 
Instance details

Defined in GHC.Internal.Text.ParserCombinators.ReadPrec

Methods

mzero :: ReadPrec a #

mplus :: ReadPrec a -> ReadPrec a -> ReadPrec a #

MonadFail ReadPrec 
Instance details

Defined in GHC.Internal.Text.ParserCombinators.ReadPrec

Methods

fail :: String -> ReadPrec a #

prec :: Prec -> ReadPrec a -> ReadPrec a #

type Prec = Int #

lift :: ReadP a -> ReadPrec a #

readP_to_Prec :: (Int -> ReadP a) -> ReadPrec a #

readPrec_to_P :: ReadPrec a -> Int -> ReadP a #

data Lexeme #

Instances

Instances details
Read Lexeme 
Instance details

Defined in GHC.Internal.Read

Show Lexeme 
Instance details

Defined in GHC.Internal.Text.Read.Lex

Eq Lexeme 
Instance details

Defined in GHC.Internal.Text.Read.Lex

Methods

(==) :: Lexeme -> Lexeme -> Bool #

(/=) :: Lexeme -> Lexeme -> Bool #

readMaybe :: Read a => String -> Maybe a #