Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding Typeable to Models.

  • Loading branch information...
commit d0e323470dcecac5b2480ac469faa8c0c96958a3 1 parent 194a9f8
@alsonkemp authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Turbinado/Database/ORM/Output.hs
View
2  Turbinado/Database/ORM/Output.hs
@@ -56,7 +56,7 @@ generateType t typeName pk ts cs =
[ "data " ++ typeName ++ " = " ++ typeName ++ " {"
] ++
[intercalate ",\n" (map columnToFieldLabel (M.toList cs))] ++
- [ " } deriving (Eq, Show)"
+ [ " } deriving (Eq, Show, Typeable)"
, ""
, "instance DatabaseModel " ++ typeName ++ " where"
, " tableName _ = \"" ++ t ++ "\""
Please sign in to comment.
Something went wrong with that request. Please try again.