Copyright | (c) Owen Shepherd 2022 |
---|---|
License | MIT |
Maintainer | owen@owen.cafe |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- data PricesAndRatiosRow a = PricesAndRatiosRow {}
- newtype PricesAndRatiosKeyed a = PricesAndRatiosKeyed {}
Documentation
data PricesAndRatiosRow a Source #
Represents a company's prices and ratios.
Instances
Functor PricesAndRatiosRow Source # | |
Defined in SimFin.Types.PricesAndRatios fmap :: (a -> b) -> PricesAndRatiosRow a -> PricesAndRatiosRow b # (<$) :: a -> PricesAndRatiosRow b -> PricesAndRatiosRow a # | |
Show a => Show (PricesAndRatiosRow a) Source # | |
Defined in SimFin.Types.PricesAndRatios showsPrec :: Int -> PricesAndRatiosRow a -> ShowS # show :: PricesAndRatiosRow a -> String # showList :: [PricesAndRatiosRow a] -> ShowS # | |
(Read a, RealFrac a) => FromJSON (PricesAndRatiosRow a) Source # | |
Defined in SimFin.Types.PricesAndRatios parseJSON :: Value -> Parser (PricesAndRatiosRow a) # parseJSONList :: Value -> Parser [PricesAndRatiosRow a] # |
newtype PricesAndRatiosKeyed a Source #
Wrapper to parse a PricesAndRatiosRow record from SimFin's JSON format. You probably don't want to use this.
Instances
(Read a, RealFrac a) => FromJSON (PricesAndRatiosKeyed a) Source # | |
Defined in SimFin.Types.PricesAndRatios parseJSON :: Value -> Parser (PricesAndRatiosKeyed a) # parseJSONList :: Value -> Parser [PricesAndRatiosKeyed a] # |