Hoogle Search

Within LTS Haskell 24.39 (ghc-9.10.3)

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

  1. moveForward :: (Ord time, Num time) => T time (time, body) -> T time body

    event-list Data.EventList.Relative.TimeTime

    Move events towards the front of the event list. You must make sure, that no event is moved before time zero. This works only for finite lists.

  2. moveForwardRestricted :: (Ord body, C time) => time -> T time (time, body) -> T time body

    event-list Data.EventList.Relative.TimeTime

    Like moveForward but restricts the look-ahead time. For moveForwardRestricted maxTimeDiff xs all time differences (aka the moveForward offsets) in xs must be at most maxTimeDiff. With this restriction the function is lazy enough for handling infinite event lists. However the larger maxTimeDiff the more memory and time is consumed.

  3. moveForwardRestrictedBy :: C time => (body -> body -> Bool) -> time -> T time (time, body) -> T time body

    event-list Data.EventList.Relative.TimeTime

    currently only for testing

  4. moveForwardRestrictedByQueue :: (C time, Num time) => (body -> body -> Bool) -> time -> T time (time, body) -> T time body

    event-list Data.EventList.Relative.TimeTime

    currently only for testing

  5. moveForwardRestrictedByStrict :: C time => (body -> body -> Bool) -> time -> T time (time, body) -> T time body

    event-list Data.EventList.Relative.TimeTime

    currently only for testing

  6. type LogFormatter a = a -> LogRecord -> String -> IO String

    hslogger System.Log.Formatter

    A LogFormatter is used to format log messages. Note that it is paramterized on the Handler to allow the formatter to use information specific to the handler (an example of can be seen in the formatter used in Syslog)

  7. nullFormatter :: LogFormatter a

    hslogger System.Log.Formatter

    Returns the passed message as is, ie. no formatting is done.

  8. simpleLogFormatter :: String -> LogFormatter a

    hslogger System.Log.Formatter

    Takes a format string, and returns a formatter that may be used to format log messages. The format string may contain variables prefixed with a $-sign which will be replaced at runtime with corresponding values. The currently supported variables are:

    • $msg - The actual log message
    • $loggername - The name of the logger
    • $prio - The priority level of the message
    • $tid - The thread ID
    • $pid - Process ID (Not available on windows)
    • $time - The current time
    • $utcTime - The current time in UTC Time

  9. tfLogFormatter :: String -> String -> LogFormatter a

    hslogger System.Log.Formatter

    Like simpleLogFormatter but allow the time format to be specified in the first parameter (this is passed to formatTime)

  10. varFormatter :: [(String, IO String)] -> String -> LogFormatter a

    hslogger System.Log.Formatter

    An extensible formatter that allows new substition variables to be defined. Each variable has an associated IO action that is used to produce the string to substitute for the variable name. The predefined variables are the same as for simpleLogFormatter excluding $time and $utcTime.

Page 579 of many | Previous | Next