aboutsummaryrefslogtreecommitdiff
path: root/hoogle-test/src/Bug946/Bug946.hs
blob: 606b5ac48794c39733e27e7ab8afd49eac70da00 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{-# 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