lpsmith/postgresql-simple — pull request #102 by bitonic (2014-03-12 16:12:55+00:00)
Title: Parse NULL values in arrays correctly.

`NULL` values in arrays are not currently parsed correctly:

````
λ> ints :: [Pg.Only (V.Vector (Maybe Int))] <- Pg.query_ conn "SELECT '{1, NULL}' :: int[]"
*** Exception: ConversionFailed {errSQLType = "_int4", errSQLTableOid = Nothing, errSQLField = "int4", errHaskellType = "Int", errMessage = "Failed reading: takeWhile1"}
````

This is because each value of the array is assumed to be non-null. The patch fixes this problem but it's more a proof-of-concept than anything else, since I don't really know much about the codebase and I don't know if that's the right way of doing things (maybe there are other ways NULL values can be represented etc.)