gdelt-0.1.0.0: GDELT V2 (Global Database of Events, Language, and Tone)

Safe HaskellNone
LanguageHaskell2010

GDELT.V2.Parsec.Common

Contents

Synopsis

Documentation

time

localTime :: Parser LocalTime Source #

Parse a timestamp in YYYYMMDDHHMMSS format into a LocalTime

numbers

digit :: Num a => Parser a Source #

Parses a single decimal digit (0 - 9)

places

data ADM1 Source #

Constructors

ADM1 
Instances
Eq ADM1 Source # 
Instance details

Defined in GDELT.V2.Parsec.Common

Methods

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

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

Show ADM1 Source # 
Instance details

Defined in GDELT.V2.Parsec.Common

Methods

showsPrec :: Int -> ADM1 -> ShowS #

show :: ADM1 -> String #

showList :: [ADM1] -> ShowS #

Generic ADM1 Source # 
Instance details

Defined in GDELT.V2.Parsec.Common

Associated Types

type Rep ADM1 :: Type -> Type #

Methods

from :: ADM1 -> Rep ADM1 x #

to :: Rep ADM1 x -> ADM1 #

type Rep ADM1 Source # 
Instance details

Defined in GDELT.V2.Parsec.Common

type Rep ADM1 = D1 (MetaData "ADM1" "GDELT.V2.Parsec.Common" "gdelt-0.1.0.0-GKPOXl1qZjP41letUwnafg" False) (C1 (MetaCons "ADM1" PrefixI True) (S1 (MetaSel (Just "adm1_FIPS10_4") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "adm1Code") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))

newtype Latitude Source #

Constructors

Latitude 

Fields

Instances
Eq Latitude Source # 
Instance details

Defined in GDELT.V2.Parsec.Common

Show Latitude Source # 
Instance details

Defined in GDELT.V2.Parsec.Common

Generic Latitude Source # 
Instance details

Defined in GDELT.V2.Parsec.Common

Associated Types

type Rep Latitude :: Type -> Type #

Methods

from :: Latitude -> Rep Latitude x #

to :: Rep Latitude x -> Latitude #

type Rep Latitude Source # 
Instance details

Defined in GDELT.V2.Parsec.Common

type Rep Latitude = D1 (MetaData "Latitude" "GDELT.V2.Parsec.Common" "gdelt-0.1.0.0-GKPOXl1qZjP41letUwnafg" True) (C1 (MetaCons "Latitude" PrefixI True) (S1 (MetaSel (Just "getLatitude") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Double)))

newtype Longitude Source #

Constructors

Longitude 

Fields

Instances
Eq Longitude Source # 
Instance details

Defined in GDELT.V2.Parsec.Common

Show Longitude Source # 
Instance details

Defined in GDELT.V2.Parsec.Common

Generic Longitude Source # 
Instance details

Defined in GDELT.V2.Parsec.Common

Associated Types

type Rep Longitude :: Type -> Type #

type Rep Longitude Source # 
Instance details

Defined in GDELT.V2.Parsec.Common

type Rep Longitude = D1 (MetaData "Longitude" "GDELT.V2.Parsec.Common" "gdelt-0.1.0.0-GKPOXl1qZjP41letUwnafg" True) (C1 (MetaCons "Longitude" PrefixI True) (S1 (MetaSel (Just "getLongitude") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Double)))

utility

signedDouble :: RealFloat a => Parser a Source #

Parses a real, signed floating-point value.