packages feed

event-monad-0.0.1.0: src/Control/Monad/Event/Internal/EventID.hs

{-
 -      ``Control/Monad/Event/Internal/EventID''
 -}
{-# LANGUAGE
    GeneralizedNewtypeDeriving
  #-}

module Control.Monad.Event.Internal.EventID where

-- |An opaque identifier for events.
newtype EventID = EventID Int
        deriving (Eq, Ord, Enum)

instance Show EventID where
    showsPrec p (EventID i) = showsPrec p i