alevy / postgresql-orm

An Haskell ORM (Object Relational Mapping) and migrations DSL for PostgreSQL.
http://simple.cx
GNU General Public License v3.0
78 stars 12 forks source link

Add new "pg_migrate compile" behaviour #25

Closed ian-ross closed 6 years ago

ian-ross commented 6 years ago

At the moment, running pg_migrate requires a valid GHC installation, because migration scripts are run directly using runghc. Instead, it would be useful to provide a "compilation" mode to build a single "migrater" executable that can be used in the absence of a Haskell installation. This mode would collect the migration scripts, editing them as necessary to make them into Haskell modules that could be compiled along with a suitable main program to make a standalone migration runner.

alevy commented 6 years ago

solved in #26