[Haskell-cafe] persistent in types

Dmitry Olshansky olshanskydr at gmail.com
Wed Jul 12 19:48:57 UTC 2017

Hello cafe,

I am trying to develop a library PersT
for working with database persistent in types (instead of e.g.
template-haskell in persistent library).
Now there are base DDL/DML functionality and additional DML functionality
for tree-like structures.
Small dirty example of using it is located here

The main problem which I have is compile time.
Compiling of my small example (five tables with five fields) needs 7
minutes and more than 6Gb RAM (!)
I compile using stack and ghc 8.0.2.
To check you need additionally only sqlite installed.

Are there any ways to reduce resource utilization in compile time?
Is it some problem in ghc which can be changed in future?

What do you think?

I also will be thankful for any feedback about library.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20170712/703b3337/attachment.html>

More information about the Haskell-Cafe mailing list