PersistTestPetType.hs 178 B

123456789
  1. {-# LANGUAGE TemplateHaskell #-}
  2. module PersistTestPetType where
  3. import Database.Persist.TH
  4. data PetType = Cat | Dog
  5. deriving (Show, Read, Eq)
  6. derivePersistField "PetType"