blob: 606b5ac48794c39733e27e7ab8afd49eac70da00 (
plain) (
tree)
|
|
{-# LANGUAGE PatternSynonyms #-}
module Bug946 (
AnInt(AnInt, Zero),
pattern TwoPointFive,
) where
-- | A wrapper around 'Int'
data AnInt = AnInt Int -- ^ some 'Int'
-- | The 'Int' 0
pattern Zero :: AnInt
pattern Zero = AnInt 0
-- | The double 2.5
pattern TwoPointFive :: Double
pattern TwoPointFive = 2.5
|