[Haskell-cafe] Using Haskell types in a database
Tom Ellis
tom-lists-haskell-cafe-2013 at jaguarpaw.co.uk
Wed Feb 11 00:00:12 UTC 2015
On Tue, Feb 10, 2015 at 09:02:58PM +0300, Nikita Karetnikov wrote:
> > That part I don't understand. Why does your proposal require varchars
> > everywhere?
>
> I assume that Persistent (or its PostgreSQL backend) has a predefined
> mapping from a commonly used Haskell types to the database types.
> And everything else is represented as a varchar.
OK, well that's surprising. Opaleye by contrast does not force everything
into a varchar.
Tom
More information about the Haskell-Cafe
mailing list