Hoogle Search
Within LTS Haskell 24.5 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
readConstr :: DataType -> String -> Maybe Constrbase Data.Data Lookup a constructor via a string
readBinaryWith :: ReadPrec a -> ReadPrec b -> String -> (a -> b -> t) -> ReadPrec tbase Data.Functor.Classes readBinaryWith rp1 rp2 n c' matches the name of a binary data constructor and then parses its arguments using rp1 and rp2 respectively.
readData :: ReadPrec a -> ReadPrec abase Data.Functor.Classes readData p is a parser for datatypes where each alternative begins with a data constructor. It parses the constructor and passes it to p. Parsers for various constructors can be constructed with readUnaryWith and readBinaryWith, and combined with (<|>) from the Alternative class.
readPrec1 :: (Read1 f, Read a) => ReadPrec (f a)base Data.Functor.Classes Lift the standard readPrec and readListPrec functions through the type constructor.
readPrec2 :: (Read2 f, Read a, Read b) => ReadPrec (f a b)base Data.Functor.Classes Lift the standard readPrec function through the type constructor.
readUnaryWith :: ReadPrec a -> String -> (a -> t) -> ReadPrec tbase Data.Functor.Classes readUnaryWith rp n c' matches the name of a unary data constructor and then parses its argument using rp.
readsBinary1 :: (Read1 f, Read1 g, Read a) => String -> (f a -> g a -> t) -> String -> ReadS tbase Data.Functor.Classes Deprecated: Use readsBinaryWith to define liftReadsPrec
-
base Data.Functor.Classes readsBinaryWith rp1 rp2 n c n' matches the name of a binary data constructor and then parses its arguments using rp1 and rp2 respectively.
readsData :: (String -> ReadS a) -> Int -> ReadS abase Data.Functor.Classes readsData p d is a parser for datatypes where each alternative begins with a data constructor. It parses the constructor and passes it to p. Parsers for various constructors can be constructed with readsUnary, readsUnary1 and readsBinary1, and combined with mappend from the Monoid class.
readsPrec1 :: (Read1 f, Read a) => Int -> ReadS (f a)base Data.Functor.Classes Lift the standard readsPrec and readList functions through the type constructor.