Safe Haskell | None |
---|---|
Language | Haskell2010 |
A set of data types corresponding to records returned from Yahoo API. Note that this is a subject to modifications whenever the remote API changes on Yahoo side.
Synopsis
- data PriceResponse = PriceResponse {}
- tryParse :: FromNamedRecord a => ByteString -> Either String [a]
- tryParseAsPrice :: ByteString -> Either String [PriceResponse]
Documentation
data PriceResponse Source #
A type representing market price data returned by Yahoo.
Instances
Eq PriceResponse Source # | |
Defined in Web.Data.Yahoo.Response (==) :: PriceResponse -> PriceResponse -> Bool # (/=) :: PriceResponse -> PriceResponse -> Bool # | |
Show PriceResponse Source # | |
Defined in Web.Data.Yahoo.Response showsPrec :: Int -> PriceResponse -> ShowS # show :: PriceResponse -> String # showList :: [PriceResponse] -> ShowS # | |
FromNamedRecord PriceResponse Source # | |
Defined in Web.Data.Yahoo.Response |
tryParse :: FromNamedRecord a => ByteString -> Either String [a] Source #
An auxiliary function that attempts to parse a string provided and interpret it as a CSV set of values of type a.
tryParseAsPrice :: ByteString -> Either String [PriceResponse] Source #
A specialized version of tryParse dedicated to parsing PriceResponse records