nikita-volkov / postgresql-binary

Encoders and decoders for the PostgreSQL's binary format
http://hackage.haskell.org/package/postgresql-binary
MIT License
21 stars 13 forks source link

Support for enum types in postgres. #1

Closed 0x777 closed 9 years ago

0x777 commented 9 years ago

Added a type PGEnum which is a newtype wrapper over Data.Text.Text as discussed here.

nikita-volkov commented 9 years ago

Oh. I presumed that you had implemented some special codec functionality when I suggested to implement the type here. Since there is nothing but a type wrapper, a codecs library is not a proper place for that.

I'll see what I can do with the original pull request in the "hasql-postgres" library.