blob: ec567d6df10a29692695b2e2bb8c88a7b3056079 (
plain) (
tree)
|
|
{-# LANGUAGE Haskell2010 #-}
{-# 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
|