Skip to content
Commits on Dec 19, 2015
  1. Add GHC 7.10 to TravisCI

    committed Dec 19, 2015
Commits on Dec 14, 2015
  1. Merge pull request #173 from alevy/fix/empty_array_to_field

    PostgreSQL wants type information for `ARRAY[]`
    committed Dec 14, 2015
  2. @alevy

    PostgreSQL wants type information for `ARRAY[]`

    While PostgreSQL does not require type information for the `ARRAY[]`
    syntax when it is non-empty, empty arrays result in an error:
    
    ```
    SqlError
      { sqlState = "42P18", sqlExecStatus = FatalError
      , sqlErrorMsg = "cannot determine type of empty array", sqlErrorDetail = ""
      , sqlErrorHint =
        "Explicitly cast to the desired type, for example ARRAY[]::integer[]."
      }
    ```
    
    i.e. `ARRAY[1,2,3,4]` is correctly interpreted to be `integer[]`, but
    `ARRAY[]` does not.
    
    The syntax `'{}'` does not require type information when empty (for some
    reason). Unfortunately, that syntax would require manual escaping for
    non-empty arrays (e.g. if the elements have type `text`).
    
    This commit simply special-cases the `ToField` instance of `PGArray`
    when the array is empty to use the `{}` syntax.
    alevy committed Dec 14, 2015
Commits on Dec 11, 2015
  1. Merge pull request #172 from bgamari/patch-1

    FromRow: Fix Haddock markup
    committed Dec 10, 2015
Commits on Dec 7, 2015
  1. @bgamari

    FromRow: Fix Haddock markup

    bgamari committed Dec 7, 2015
Commits on Dec 3, 2015
Commits on Dec 2, 2015
  1. VERSION 0.5.1.1; CHANGES

    committed Dec 2, 2015
  2. Rewrite the documentation in the Time module

    That documentation has been barely touched, if at all,  in the three
    years since I wrote it.   It was kinda painful to read,  as I've
    learned a lot about timekeeping in the meantime.
    
    This should be massively more informative and all-around better.
    Perhaps it could be a bit more concise,  but this is a lengthy topic.
    committed Dec 2, 2015
Commits on Dec 1, 2015
  1. Merge pull request #170 from levinotik/doc-fix

    add missing square bracket in comment doc
    committed Dec 1, 2015
  2. @levinotik
Commits on Nov 30, 2015
Commits on Oct 22, 2015
  1. Allow bytestring-0.9 and GHC 7.4

    Closes #164
    committed Oct 22, 2015
Commits on Oct 19, 2015
  1. Oops

    committed Oct 19, 2015
  2. Minor cleanups relating to #149

    I did investigate using QuickCheck to generate round-trip test cases,
    but I ran into minor issues regarding integrating the two testing libraries
    into a single test suite.  And honestly, as-is,  the test cases as-is
    are probably a reasonably complete test of the new Generic instances for
    FromField and ToField.   In all likelihood,  the logic that
    QuickCheck-generated roundtrips would really exercise is the FromField
    and ToField instances.  (Which admittedly, is a major hole in the current
    test suite.)
    committed Oct 19, 2015
Commits on Oct 18, 2015
  1. Merge pull request #149 from Shimuuar/generic

    Implement default instances for {To,From}Row using Generic
    committed Oct 18, 2015
Commits on Oct 17, 2015
  1. @Shimuuar

    OK let drop nullary

    Shimuuar committed Oct 17, 2015
  2. @Shimuuar

    Fix SQL queries in test

    Shimuuar committed Oct 17, 2015
  3. @Shimuuar

    Add test for generic instances

    Shimuuar committed Oct 17, 2015
Commits on Oct 14, 2015
  1. Merge pull request #163 from tvh/stream-fold

    Reduce overhead of fold
    committed Oct 14, 2015
Commits on Oct 12, 2015
  1. Explicit handling of accumulator in fold

    Timo von Holtz committed Oct 13, 2015
Commits on Oct 8, 2015
  1. Remove intermediate list in fold

    This addresses issue 3 of 6457e41.
    Timo von Holtz committed Oct 8, 2015
Commits on Sep 26, 2015
  1. Merge pull request #162 from tomjaguarpaw/master

    Correct foldWith_ Haddock
    committed Sep 26, 2015
  2. @tomjaguarpaw

    Correct foldWith_ Haddock

    tomjaguarpaw committed Sep 26, 2015
Commits on Sep 22, 2015
  1. Version 0.5.0.1; CHANGES

    committed Sep 21, 2015
  2. Fix ZonedTime printing

    committed Sep 21, 2015
Commits on Sep 19, 2015
  1. New Timestamp Printers

    committed Sep 19, 2015
Commits on Sep 18, 2015
  1. Fix Time Parser tweaks

    committed Sep 18, 2015
Something went wrong with that request. Please try again.