EntityEmbedTestMongo.hs 572 B

12345678910111213141516171819202122
  1. {-# LANGUAGE EmptyDataDecls #-}
  2. {-# LANGUAGE ExistentialQuantification #-}
  3. {-# LANGUAGE FlexibleInstances #-}
  4. {-# LANGUAGE MultiParamTypeClasses #-}
  5. {-# LANGUAGE QuasiQuotes #-}
  6. {-# LANGUAGE TemplateHaskell #-}
  7. {-# LANGUAGE TypeFamilies #-}
  8. {-# LANGUAGE UndecidableInstances #-}
  9. module EntityEmbedTestMongo where
  10. -- because we are using a type alias we need to declare in a separate module
  11. -- this is used in EmbedTest
  12. import MongoInit
  13. mkPersist persistSettings [persistUpperCase|
  14. ARecord
  15. name Text
  16. deriving Show Eq Read Ord
  17. |]
  18. type AnEntity = Entity ARecord