test2.hs 575 B

12345678910111213141516171819202122232425
  1. -- some degenerate cases
  2. {-# LANGUAGE TypeFamilies #-}
  3. {-# LANGUAGE FlexibleInstances #-}
  4. {-# LANGUAGE MultiParamTypeClasses #-}
  5. {-# LANGUAGE GeneralizedNewtypeDeriving #-}
  6. {-# LANGUAGE StandaloneDeriving #-}
  7. import Prelude hiding (filter)
  8. import Database.Persist
  9. import Database.Persist.State
  10. import Database.Persist.Sqlite3
  11. import Control.Monad.IO.Class
  12. import qualified Data.Map as Map
  13. import Database.HDBC.Sqlite3 (connectSqlite3)
  14. derivePersistSqlite3 $ Table "Foo"
  15. [ ("field", ("Int", False))
  16. ]
  17. []
  18. []
  19. []
  20. []
  21. main = putStrLn "degenerates work!"