{-# LANGUAGE AllowAmbiguousTypes #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeApplications #-} {-# LANGUAGE TypeOperators #-} {-# LANGUAGE UndecidableInstances #-} module ForeignKey where import qualified Data.List as List import Data.Proxy import Init import Database.Persist.EntityDef.Internal (entityExtra) -- mpsGeneric = False is due to a bug or at least lack of a feature in mkKeyTypeDec TH.hs