packages feed

tilia-0.2.0.0: corpora/vendored/cpp/haddock/dividers-around-a-module-haddock.hs

{-# LANGUAGE CPP #-}
-----------------------------------------------------------------------------
-- |
-- Module      :  Data.Orchard
-- License     :  BSD-style (see the file LICENSE)
--
-- Trees, the fruit they bear, and when to pick it.
----------------------------------------------------------------------------
module Data.Orchard
  ( Tree (..),
    ripe,
  )
where

#if MIN_VERSION_base(4,8,0)
import Data.List (sortOn)
#endif

data Tree = Apple | Pear

---------------------------------------------------------------------------
-- | Is the fruit ready to pick?
ripe :: Tree -> Bool
ripe _ = True