Using Generic Deriving with a Record Haskell
问题 I am basically attempting to see if I can emulate an ORM framework within Haskell, so that if a user wants to make a database model, they would do something like this data Car = Car { company :: String, model :: String, year :: Int } deriving (Model) Where the table would be "Car", and the columns would be the company,model,year To do this within Haskell, you have to use a combination of classes and generics, and this is where I am getting stuck. Using this tutorial (http://www.haskell.org