packages feed

tilia-0.2.0.0: corpora/vendored/pragma/declaration/pragmas-next-to-the-data-instance-of-what-they-name-out.hs

{-# LANGUAGE TypeFamilies #-}

-- A pragma naming a constructor or a field of a data instance, at the top
-- level or in a class instance, stays next to the instance, as one naming a
-- member of a type does.
module Store.Key where

data family Key c

data instance Key Int = IntKey Int
{-# DEPRECATED IntKey "Use Key Word instead." #-}

newtype instance Key Char = CharKey{charKey :: Char}
{-# DEPRECATED charKey "Use Key Word instead." #-}

class Keyed c where
  data Tag c

instance Keyed Int where
  data Tag Int = IntTag Int
{-# DEPRECATED IntTag "Use Tag Word instead." #-}