packages feed

tilia-0.2.0.0: corpora/vendored/cpp/declaration/deriving-strategy-behind-a-conditional.hs

{-# LANGUAGE CPP #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE StandaloneDeriving #-}

module Route.Leg where

newtype Leg = Leg Int
  deriving
#ifdef WITH_NEWTYPE_DERIVING
    newtype
#else
    stock
#endif
    (Eq)

deriving
#ifdef WITH_STOCK
  stock
#endif
  instance Show Leg