jobqueue-0.1.6: A job queue library

Safe HaskellSafe
LanguageHaskell98

Network.JobQueue.Class

Description

Class definitions

Synopsis

Documentation

class Env a Source

Environment class

class Show a => Desc a where Source

Description class

Minimal complete definition

Nothing

Methods

desc :: a -> String Source

Define the description of a unit.

shortDesc :: a -> String Source

Define the short description of a unit.

class (Read a, Show a, Desc a, Eq a) => Unit a where Source

Unit class

Minimal complete definition

Nothing

Methods

getPriority :: a -> Int Source

Define the priority of a unit.

getRecovery :: a -> a Source

Define the recovery state of a unit.

toBeLogged :: a -> Bool Source

Define the logging necessity of a unit.