Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype FieldName = FieldName {
- unFieldName :: Text
- newtype Hash = Hash {}
- newtype Host = Host {}
- newtype Count (a :: k) = Count {}
- newtype TId = TId {}
- newtype EpochSlot = EpochSlot {}
- newtype EpochSafeInt = EpochSafeInt {}
- data HostDeduction = HostFromLogfilename
- newtype InputDir = InputDir {}
- newtype JsonLogfile = JsonLogfile {}
- newtype JsonInputFile (a :: Type) = JsonInputFile {}
- newtype JsonOutputFile (a :: Type) = JsonOutputFile {}
- newtype GnuplotOutputFile = GnuplotOutputFile {}
- newtype OrgOutputFile = OrgOutputFile {}
- newtype TextInputFile = TextInputFile {}
- newtype TextOutputFile = TextOutputFile {}
- newtype CsvOutputFile = CsvOutputFile {}
- newtype OutputFile = OutputFile {}
- shortHash :: Hash -> Text
- countMap :: Map a b -> Count a
- countList :: (a -> Bool) -> [a] -> Count a
- countLists :: (a -> Bool) -> [[a]] -> Count a
- countListAll :: [a] -> Count a
- countListsAll :: [[a]] -> Count a
- unsafeCoerceCount :: Count a -> Count b
- readJsonData :: FromJSON a => JsonInputFile a -> (Text -> b) -> ExceptT b IO a
- readJsonDataIO :: FromJSON a => JsonInputFile a -> IO (Either String a)
- optInputDir :: String -> String -> Parser InputDir
- optJsonLogfile :: String -> String -> Parser JsonLogfile
- argJsonLogfile :: Parser JsonLogfile
- optJsonInputFile :: String -> String -> Parser (JsonInputFile a)
- optJsonOutputFile :: String -> String -> Parser (JsonOutputFile a)
- optGnuplotOutputFile :: String -> String -> Parser GnuplotOutputFile
- optTextInputFile :: String -> String -> Parser TextInputFile
- optTextOutputFile :: String -> String -> Parser TextOutputFile
- optCsvOutputFile :: String -> String -> Parser CsvOutputFile
- optOutputFile :: String -> String -> Parser OutputFile
- pSlotNo :: String -> String -> Parser SlotNo
- optUTCTime :: String -> String -> Parser UTCTime
- optDuration :: String -> String -> NominalDiffTime -> Parser NominalDiffTime
- optWord :: String -> String -> Word64 -> Parser Word64
- hostFromLogfilename :: JsonLogfile -> Host
- hostDeduction :: HostDeduction -> JsonLogfile -> Host
- dumpObject :: ToJSON a => String -> a -> JsonOutputFile a -> ExceptT Text IO ()
- dumpObjects :: ToJSON a => String -> [a] -> JsonOutputFile [a] -> ExceptT Text IO ()
- dumpAssociatedObjects :: ToJSON a => String -> [(JsonLogfile, a)] -> ExceptT Text IO ()
- readAssociatedObjects :: forall a. FromJSON a => String -> [JsonLogfile] -> ExceptT Text IO [(JsonLogfile, a)]
- dumpAssociatedObjectStreams :: ToJSON a => String -> [(JsonLogfile, [a])] -> ExceptT Text IO ()
- dumpText :: String -> [Text] -> TextOutputFile -> ExceptT Text IO ()
- dumpAssociatedTextStreams :: String -> [(JsonLogfile, [Text])] -> ExceptT Text IO ()
- module Data.DataDomain
- data UTCTime
- data NominalDiffTime
- newtype BlockNo = BlockNo {}
- newtype EpochNo = EpochNo {}
- newtype SlotNo = SlotNo {}
Documentation
Instances
FromJSON FieldName Source # | |
Defined in Cardano.Analysis.API.Ground | |
ToJSON FieldName Source # | |
Defined in Cardano.Analysis.API.Ground | |
IsString FieldName Source # | |
Defined in Cardano.Analysis.API.Ground fromString :: String -> FieldName Source # | |
Generic FieldName Source # | |
Show FieldName Source # | |
NFData FieldName Source # | |
Defined in Cardano.Analysis.API.Ground | |
Eq FieldName Source # | |
Ord FieldName Source # | |
Defined in Cardano.Analysis.API.Ground | |
type Rep FieldName Source # | |
Defined in Cardano.Analysis.API.Ground |
Instances
FromJSON Hash Source # | |
Defined in Cardano.Analysis.API.Ground | |
FromJSONKey Hash Source # | |
Defined in Cardano.Analysis.API.Ground fromJSONKey :: FromJSONKeyFunction Hash fromJSONKeyList :: FromJSONKeyFunction [Hash] | |
ToJSON Hash Source # | |
Defined in Cardano.Analysis.API.Ground | |
ToJSONKey Hash Source # | |
Defined in Cardano.Analysis.API.Ground toJSONKey :: ToJSONKeyFunction Hash toJSONKeyList :: ToJSONKeyFunction [Hash] | |
Generic Hash Source # | |
Show Hash Source # | |
NFData Hash Source # | |
Defined in Cardano.Analysis.API.Ground | |
Eq Hash Source # | |
Ord Hash Source # | |
Defined in Cardano.Analysis.API.Ground | |
type Rep Hash Source # | |
Defined in Cardano.Analysis.API.Ground |
Instances
FromJSON Host Source # | |
Defined in Cardano.Analysis.API.Ground | |
FromJSONKey Host Source # | |
Defined in Cardano.Analysis.API.Ground fromJSONKey :: FromJSONKeyFunction Host fromJSONKeyList :: FromJSONKeyFunction [Host] | |
ToJSON Host Source # | |
Defined in Cardano.Analysis.API.Ground | |
ToJSONKey Host Source # | |
Defined in Cardano.Analysis.API.Ground toJSONKey :: ToJSONKeyFunction Host toJSONKeyList :: ToJSONKeyFunction [Host] | |
IsString Host Source # | |
Defined in Cardano.Analysis.API.Ground fromString :: String -> Host Source # | |
Generic Host Source # | |
Show Host Source # | |
NFData Host Source # | |
Defined in Cardano.Analysis.API.Ground | |
Eq Host Source # | |
Ord Host Source # | |
Defined in Cardano.Analysis.API.Ground | |
type Rep Host Source # | |
Defined in Cardano.Analysis.API.Ground |
newtype Count (a :: k) Source #
Instances
FromJSON (Count a) Source # | |
Defined in Cardano.Analysis.API.Ground | |
ToJSON (Count a) Source # | |
Defined in Cardano.Analysis.API.Ground | |
Generic (Count a) Source # | |
Num (Count a) Source # | |
Defined in Cardano.Analysis.API.Ground | |
Real (Count a) Source # | |
Defined in Cardano.Analysis.API.Ground toRational :: Count a -> Rational Source # | |
Show (Count a) Source # | |
NFData (Count a) Source # | |
Defined in Cardano.Analysis.API.Ground | |
Eq (Count a) Source # | |
Ord (Count a) Source # | |
Defined in Cardano.Analysis.API.Ground | |
Divisible (Count a) Source # | |
type Rep (Count a) Source # | |
Defined in Cardano.Analysis.API.Ground |
Instances
FromJSON TId Source # | |
Defined in Cardano.Analysis.API.Ground | |
ToJSON TId Source # | |
Defined in Cardano.Analysis.API.Ground | |
Generic TId Source # | |
Show TId Source # | |
NFData TId Source # | |
Defined in Cardano.Analysis.API.Ground | |
Eq TId Source # | |
Ord TId Source # | |
type Rep TId Source # | |
Defined in Cardano.Analysis.API.Ground |
Instances
FromJSON EpochSlot Source # | |
Defined in Cardano.Analysis.API.Ground | |
ToJSON EpochSlot Source # | |
Defined in Cardano.Analysis.API.Ground | |
Generic EpochSlot Source # | |
Num EpochSlot Source # | |
Defined in Cardano.Analysis.API.Ground (+) :: EpochSlot -> EpochSlot -> EpochSlot Source # (-) :: EpochSlot -> EpochSlot -> EpochSlot Source # (*) :: EpochSlot -> EpochSlot -> EpochSlot Source # negate :: EpochSlot -> EpochSlot Source # abs :: EpochSlot -> EpochSlot Source # signum :: EpochSlot -> EpochSlot Source # fromInteger :: Integer -> EpochSlot Source # | |
Show EpochSlot Source # | |
NFData EpochSlot Source # | |
Defined in Cardano.Analysis.API.Ground | |
Eq EpochSlot Source # | |
Ord EpochSlot Source # | |
Defined in Cardano.Analysis.API.Ground | |
type Rep EpochSlot Source # | |
Defined in Cardano.Analysis.API.Ground |
newtype EpochSafeInt Source #
Instances
data HostDeduction Source #
Instances
Show HostDeduction Source # | |
Defined in Cardano.Analysis.API.Ground | |
Eq HostDeduction Source # | |
Defined in Cardano.Analysis.API.Ground (==) :: HostDeduction -> HostDeduction -> Bool Source # (/=) :: HostDeduction -> HostDeduction -> Bool Source # | |
Ord HostDeduction Source # | |
Defined in Cardano.Analysis.API.Ground compare :: HostDeduction -> HostDeduction -> Ordering Source # (<) :: HostDeduction -> HostDeduction -> Bool Source # (<=) :: HostDeduction -> HostDeduction -> Bool Source # (>) :: HostDeduction -> HostDeduction -> Bool Source # (>=) :: HostDeduction -> HostDeduction -> Bool Source # max :: HostDeduction -> HostDeduction -> HostDeduction Source # min :: HostDeduction -> HostDeduction -> HostDeduction Source # |
newtype JsonLogfile Source #
Instances
FromJSON JsonLogfile Source # | |
Defined in Cardano.Analysis.API.Ground parseJSON :: Value -> Parser JsonLogfile # parseJSONList :: Value -> Parser [JsonLogfile] # | |
ToJSON JsonLogfile Source # | |
Defined in Cardano.Analysis.API.Ground toJSON :: JsonLogfile -> Value # toEncoding :: JsonLogfile -> Encoding # toJSONList :: [JsonLogfile] -> Value # toEncodingList :: [JsonLogfile] -> Encoding # omitField :: JsonLogfile -> Bool # | |
Show JsonLogfile Source # | |
Defined in Cardano.Analysis.API.Ground | |
NFData JsonLogfile Source # | |
Defined in Cardano.Analysis.API.Ground rnf :: JsonLogfile -> () Source # | |
Eq JsonLogfile Source # | |
Defined in Cardano.Analysis.API.Ground (==) :: JsonLogfile -> JsonLogfile -> Bool Source # (/=) :: JsonLogfile -> JsonLogfile -> Bool Source # |
newtype JsonInputFile (a :: Type) Source #
Instances
FromJSON (JsonInputFile a) Source # | |
Defined in Cardano.Analysis.API.Ground parseJSON :: Value -> Parser (JsonInputFile a) # parseJSONList :: Value -> Parser [JsonInputFile a] # omittedField :: Maybe (JsonInputFile a) # | |
ToJSON (JsonInputFile a) Source # | |
Defined in Cardano.Analysis.API.Ground toJSON :: JsonInputFile a -> Value # toEncoding :: JsonInputFile a -> Encoding # toJSONList :: [JsonInputFile a] -> Value # toEncodingList :: [JsonInputFile a] -> Encoding # omitField :: JsonInputFile a -> Bool # | |
Show (JsonInputFile a) Source # | |
Defined in Cardano.Analysis.API.Ground | |
Eq (JsonInputFile a) Source # | |
Defined in Cardano.Analysis.API.Ground (==) :: JsonInputFile a -> JsonInputFile a -> Bool Source # (/=) :: JsonInputFile a -> JsonInputFile a -> Bool Source # |
newtype JsonOutputFile (a :: Type) Source #
Instances
Show (JsonOutputFile a) Source # | |
Defined in Cardano.Analysis.API.Ground | |
Eq (JsonOutputFile a) Source # | |
Defined in Cardano.Analysis.API.Ground (==) :: JsonOutputFile a -> JsonOutputFile a -> Bool Source # (/=) :: JsonOutputFile a -> JsonOutputFile a -> Bool Source # |
newtype GnuplotOutputFile Source #
Instances
Show GnuplotOutputFile Source # | |
Defined in Cardano.Analysis.API.Ground | |
Eq GnuplotOutputFile Source # | |
Defined in Cardano.Analysis.API.Ground (==) :: GnuplotOutputFile -> GnuplotOutputFile -> Bool Source # (/=) :: GnuplotOutputFile -> GnuplotOutputFile -> Bool Source # |
newtype OrgOutputFile Source #
Instances
Show OrgOutputFile Source # | |
Defined in Cardano.Analysis.API.Ground | |
Eq OrgOutputFile Source # | |
Defined in Cardano.Analysis.API.Ground (==) :: OrgOutputFile -> OrgOutputFile -> Bool Source # (/=) :: OrgOutputFile -> OrgOutputFile -> Bool Source # |
newtype TextInputFile Source #
Instances
Show TextInputFile Source # | |
Defined in Cardano.Analysis.API.Ground | |
Eq TextInputFile Source # | |
Defined in Cardano.Analysis.API.Ground (==) :: TextInputFile -> TextInputFile -> Bool Source # (/=) :: TextInputFile -> TextInputFile -> Bool Source # |
newtype TextOutputFile Source #
Instances
Show TextOutputFile Source # | |
Defined in Cardano.Analysis.API.Ground | |
Eq TextOutputFile Source # | |
Defined in Cardano.Analysis.API.Ground (==) :: TextOutputFile -> TextOutputFile -> Bool Source # (/=) :: TextOutputFile -> TextOutputFile -> Bool Source # |
newtype CsvOutputFile Source #
Instances
Show CsvOutputFile Source # | |
Defined in Cardano.Analysis.API.Ground | |
Eq CsvOutputFile Source # | |
Defined in Cardano.Analysis.API.Ground (==) :: CsvOutputFile -> CsvOutputFile -> Bool Source # (/=) :: CsvOutputFile -> CsvOutputFile -> Bool Source # |
newtype OutputFile Source #
Instances
Show OutputFile Source # | |
Defined in Cardano.Analysis.API.Ground | |
Eq OutputFile Source # | |
Defined in Cardano.Analysis.API.Ground (==) :: OutputFile -> OutputFile -> Bool Source # (/=) :: OutputFile -> OutputFile -> Bool Source # |
countLists :: (a -> Bool) -> [[a]] -> Count a Source #
countListAll :: [a] -> Count a Source #
countListsAll :: [[a]] -> Count a Source #
unsafeCoerceCount :: Count a -> Count b Source #
readJsonData :: FromJSON a => JsonInputFile a -> (Text -> b) -> ExceptT b IO a Source #
readJsonDataIO :: FromJSON a => JsonInputFile a -> IO (Either String a) Source #
optJsonLogfile :: String -> String -> Parser JsonLogfile Source #
optJsonInputFile :: String -> String -> Parser (JsonInputFile a) Source #
optJsonOutputFile :: String -> String -> Parser (JsonOutputFile a) Source #
optTextInputFile :: String -> String -> Parser TextInputFile Source #
optTextOutputFile :: String -> String -> Parser TextOutputFile Source #
optCsvOutputFile :: String -> String -> Parser CsvOutputFile Source #
optOutputFile :: String -> String -> Parser OutputFile Source #
optDuration :: String -> String -> NominalDiffTime -> Parser NominalDiffTime Source #
hostDeduction :: HostDeduction -> JsonLogfile -> Host Source #
dumpObject :: ToJSON a => String -> a -> JsonOutputFile a -> ExceptT Text IO () Source #
dumpObjects :: ToJSON a => String -> [a] -> JsonOutputFile [a] -> ExceptT Text IO () Source #
dumpAssociatedObjects :: ToJSON a => String -> [(JsonLogfile, a)] -> ExceptT Text IO () Source #
readAssociatedObjects :: forall a. FromJSON a => String -> [JsonLogfile] -> ExceptT Text IO [(JsonLogfile, a)] Source #
dumpAssociatedObjectStreams :: ToJSON a => String -> [(JsonLogfile, [a])] -> ExceptT Text IO () Source #
dumpAssociatedTextStreams :: String -> [(JsonLogfile, [Text])] -> ExceptT Text IO () Source #
module Data.DataDomain
This is the simplest representation of UTC. It consists of the day number, and a time offset from midnight. Note that if a day has a leap second added to it, it will have 86401 seconds.
Instances
FromJSON UTCTime | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSONKey UTCTime | |
Defined in Data.Aeson.Types.FromJSON fromJSONKey :: FromJSONKeyFunction UTCTime fromJSONKeyList :: FromJSONKeyFunction [UTCTime] | |
ToJSON UTCTime | |
Defined in Data.Aeson.Types.ToJSON | |
ToJSONKey UTCTime | |
Defined in Data.Aeson.Types.ToJSON toJSONKey :: ToJSONKeyFunction UTCTime toJSONKeyList :: ToJSONKeyFunction [UTCTime] | |
Data UTCTime | |
Defined in Data.Time.Clock.Internal.UTCTime gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UTCTime -> c UTCTime Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UTCTime Source # toConstr :: UTCTime -> Constr Source # dataTypeOf :: UTCTime -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c UTCTime) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UTCTime) Source # gmapT :: (forall b. Data b => b -> b) -> UTCTime -> UTCTime Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UTCTime -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UTCTime -> r Source # gmapQ :: (forall d. Data d => d -> u) -> UTCTime -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> UTCTime -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> UTCTime -> m UTCTime Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UTCTime -> m UTCTime Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UTCTime -> m UTCTime Source # | |
NFData UTCTime | |
Defined in Data.Time.Clock.Internal.UTCTime | |
Eq UTCTime | |
Ord UTCTime | |
Defined in Data.Time.Clock.Internal.UTCTime |
data NominalDiffTime Source #
This is a length of time, as measured by UTC. It has a precision of 10^-12 s.
Conversion functions such as fromInteger
and realToFrac
will treat it as seconds.
For example, (0.010 :: NominalDiffTime)
corresponds to 10 milliseconds.
It has a precision of one picosecond (= 10^-12 s). Enumeration functions will treat it as picoseconds.
It ignores leap-seconds, so it's not necessarily a fixed amount of clock time. For instance, 23:00 UTC + 2 hours of NominalDiffTime = 01:00 UTC (+ 1 day), regardless of whether a leap-second intervened.
Instances
The 0-based index of the block in the blockchain. BlockNo is <= SlotNo and is only equal at slot N if there is a block for every slot where N <= SlotNo.
Instances
FromJSON BlockNo | |
Defined in Cardano.Slotting.Block | |
ToJSON BlockNo | |
Defined in Cardano.Slotting.Block | |
Bounded BlockNo | |
Enum BlockNo | |
Defined in Cardano.Slotting.Block succ :: BlockNo -> BlockNo Source # pred :: BlockNo -> BlockNo Source # toEnum :: Int -> BlockNo Source # fromEnum :: BlockNo -> Int Source # enumFrom :: BlockNo -> [BlockNo] Source # enumFromThen :: BlockNo -> BlockNo -> [BlockNo] Source # enumFromTo :: BlockNo -> BlockNo -> [BlockNo] Source # enumFromThenTo :: BlockNo -> BlockNo -> BlockNo -> [BlockNo] Source # | |
Generic BlockNo | |
Num BlockNo | |
Defined in Cardano.Slotting.Block | |
Real BlockNo Source # | |
Defined in Cardano.Analysis.API.Ground toRational :: BlockNo -> Rational Source # | |
Show BlockNo | |
FromCBOR BlockNo | |
ToCBOR BlockNo | |
NFData BlockNo | |
Defined in Cardano.Slotting.Block | |
Eq BlockNo | |
Ord BlockNo | |
Divisible BlockNo Source # | |
NoThunks BlockNo | |
Serialise BlockNo | |
type Rep BlockNo | |
Defined in Cardano.Slotting.Block |
An epoch, i.e. the number of the epoch.
Instances
FromJSON EpochNo | |
Defined in Cardano.Slotting.Slot | |
ToJSON EpochNo | |
Defined in Cardano.Slotting.Slot | |
Enum EpochNo | |
Defined in Cardano.Slotting.Slot succ :: EpochNo -> EpochNo Source # pred :: EpochNo -> EpochNo Source # toEnum :: Int -> EpochNo Source # fromEnum :: EpochNo -> Int Source # enumFrom :: EpochNo -> [EpochNo] Source # enumFromThen :: EpochNo -> EpochNo -> [EpochNo] Source # enumFromTo :: EpochNo -> EpochNo -> [EpochNo] Source # enumFromThenTo :: EpochNo -> EpochNo -> EpochNo -> [EpochNo] Source # | |
Generic EpochNo | |
Num EpochNo | |
Defined in Cardano.Slotting.Slot | |
Show EpochNo | |
FromCBOR EpochNo | |
ToCBOR EpochNo | |
NFData EpochNo | |
Defined in Cardano.Slotting.Slot | |
Eq EpochNo | |
Ord EpochNo | |
NoThunks EpochNo | |
Serialise EpochNo | |
type Rep EpochNo | |
Defined in Cardano.Slotting.Slot |
The 0-based index for the Ourboros time slot.