gagandeepb / Frames-beam

Accessing Postgres in a data frame in Haskell
BSD 3-Clause "New" or "Revised" License
24 stars 3 forks source link

Schema code should come into scope in the module calling `genBeamSchema` and not be put in a separate file/module #17

Open gagandeepb opened 6 years ago

gagandeepb commented 6 years ago

The idea: A call to genBeamSchema currently creates a new file named NewBeamSchema.hs in the src directory (relative to project root) with generated code corresponding to the database schema in it. This module then needs to get imported in the calling module in order to be used further.

It has been suggested that the generated code should come into scope in the calling module directly, and not go into a separate module of it's own. The primary difficulties in being able to do so are the following:

Having said the above, any help/feedback with regards to this issue will be appreciated.

cc @ocramz