packages feed

tianbar-0.4.0.0: src/System/Tianbar/Plugin.hs

module System.Tianbar.Plugin (
    Plugin (..),
) where

import Happstack.Server

import System.Tianbar.Callbacks

class Plugin p where
    initialize :: Callbacks -> IO p

    destroy :: p -> IO ()
    destroy _ = return ()

    handler :: p -> ServerPartT IO Response