Hoogle Search

Within LTS Haskell 24.41 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. data Projection

    hvega Graphics.Vega.VegaLite

    Types of geographic map projection. These are based on a subset of those provided by the d3-geo library. For details of available projections see the Vega-Lite documentation.

  2. Projection :: [ProjectionProperty] -> ConfigurationProperty

    hvega Graphics.Vega.VegaLite

    Deprecated: Please change Projection to ProjectionStyle

  3. data ProjectionProperty

    hvega Graphics.Vega.VegaLite

    Properties for customising a geospatial projection that converts longitude,latitude pairs into planar (x,y) coordinate pairs for rendering and query. For details see the Vega-Lite documentation. This type has been changed in the 0.4.0.0 release so that all constructors start with Pr rather than P (and so provide some differentiation to the PositionChannel constructors).

  4. ProjectionStyle :: [ProjectionProperty] -> ConfigurationProperty

    hvega Graphics.Vega.VegaLite

    The default style of map projections. This was renamed from Projection in 0.6.0.0.

  5. type PropertySpec = (VLProperty, VLSpec)

    hvega Graphics.Vega.VegaLite

    A convenience type-annotation label. It is the same as Data.

  6. ParsingException :: String -> JsonRpcException

    jsonrpc-tinyclient Network.JsonRpc.TinyClient

    No documentation available.

  7. data PayloadSelection

    katip Katip

    Field selector by verbosity within JSON payload.

  8. type PermitFunc = forall a . () => Item a -> IO Bool

    katip Katip

    Scribes are handlers of incoming items. Each registered scribe knows how to push a log item somewhere.

    Guidelines for writing your own Scribe

    Scribes should always take a Severity and Verbosity. Severity is used to exclude log messages that are lower than the provided Severity. For instance, if the user passes InfoS, DebugS items should be ignored. Katip provides the permitItem utility for this. The user or the scribe may use permitAND and permitOR to further customize this filtering, even dynamically if they wish to. Verbosity is used to select keys from the log item's payload. Each LogItem instance describes what keys should be retained for each Verbosity level. Use the payloadObject utility for extracting the keys that should be written. Scribes provide a finalizer IO action (scribeFinalizer) that is meant to synchronously flush any remaining writes and clean up any resources acquired when the scribe was created. Internally, katip keeps a buffer for each scribe's writes. When closeScribe or closeScribes is called, that buffer stops accepting new log messages and after the last item in its buffer is sent to liPush, calls the finalizer. Thus, when the finalizer returns, katip can assume that all resources are cleaned up and all log messages are durably written. While katip internally buffers messages per ScribeSettings, it sends them one at a time to the scribe. Depending on the scribe itself, it may make sense for that scribe to keep its own internal buffer to batch-send logs if writing items one at a time is not efficient. The scribe implementer must be sure that on finalization, all writes are committed synchronously. Signature of a function passed to Scribe constructor and mkScribe* functions that decides which messages to be logged. Typically filters based on Severity, but can be combined with other, custom logic with permitAND and permitOR

  9. data PayloadSelection

    katip Katip.Core

    Field selector by verbosity within JSON payload.

  10. type PermitFunc = forall a . () => Item a -> IO Bool

    katip Katip.Core

    Scribes are handlers of incoming items. Each registered scribe knows how to push a log item somewhere.

    Guidelines for writing your own Scribe

    Scribes should always take a Severity and Verbosity. Severity is used to exclude log messages that are lower than the provided Severity. For instance, if the user passes InfoS, DebugS items should be ignored. Katip provides the permitItem utility for this. The user or the scribe may use permitAND and permitOR to further customize this filtering, even dynamically if they wish to. Verbosity is used to select keys from the log item's payload. Each LogItem instance describes what keys should be retained for each Verbosity level. Use the payloadObject utility for extracting the keys that should be written. Scribes provide a finalizer IO action (scribeFinalizer) that is meant to synchronously flush any remaining writes and clean up any resources acquired when the scribe was created. Internally, katip keeps a buffer for each scribe's writes. When closeScribe or closeScribes is called, that buffer stops accepting new log messages and after the last item in its buffer is sent to liPush, calls the finalizer. Thus, when the finalizer returns, katip can assume that all resources are cleaned up and all log messages are durably written. While katip internally buffers messages per ScribeSettings, it sends them one at a time to the scribe. Depending on the scribe itself, it may make sense for that scribe to keep its own internal buffer to batch-send logs if writing items one at a time is not efficient. The scribe implementer must be sure that on finalization, all writes are committed synchronously. Signature of a function passed to Scribe constructor and mkScribe* functions that decides which messages to be logged. Typically filters based on Severity, but can be combined with other, custom logic with permitAND and permitOR

Page 716 of many | Previous | Next