packages feed

tilia-0.2.0.0: corpora/vendored/cpp/haddock/haddock-after-a-conditional-holding-a-class-head-out'.hs

{-# LANGUAGE CPP #-}
{-# LANGUAGE TypeFamilies #-}

module Test.Example where

-- A method's Haddock and signature written once, after a conditional that
-- holds the head of the class in each branch.
class
#ifdef ENABLE_HOOK_ARGS
    Example e where
    type Arg e
#else
    Example e where
#endif

    -- | Evaluates an example.
    evaluate :: e -> IO Bool