simfin-1.0.0: A library to fetch and parse financial data from the SimFin(+) API.
Copyright(c) Owen Shepherd 2022
LicenseMIT
Maintainerowen@owen.cafe
Safe HaskellNone
LanguageHaskell2010

SimFin.Types.StringFrac

Description

 
Synopsis

Documentation

newtype StringFrac a Source #

Wrapper that parses the string '"1.23"' and the number '1.23' the same. Uses the read instance for the String, and realToFrac (Scientific -> a) for the number.

Constructors

StringFrac 

Fields

Instances

Instances details
Show a => Show (StringFrac a) Source # 
Instance details

Defined in SimFin.Types.StringFrac

(Read a, RealFrac a) => FromJSON (StringFrac a) Source # 
Instance details

Defined in SimFin.Types.StringFrac