Skip to content
Snippets Groups Projects
  1. Jan 10, 2011
    • Iustin Pop's avatar
      JSON: improve error reporting · 2befdc14
      Iustin Pop authored
      
      Currently, we list the entire object in error messages. But for large
      objects (e.g. an IAllocator message), this makes the output
      unreadable, as the elements are containers themselves.
      
      To simplify the reporting, we only list the keys, as this is more
      relevent than the values.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarBalazs Lecz <leczb@google.com>
      2befdc14
    • Iustin Pop's avatar
      JSON functions: change signature of (maybe)fromObj · e8230242
      Iustin Pop authored
      
      Currently, fromObj/maybeFromObj take first the key, and then the
      object. This is suboptimal, as this form is not easy to use with
      partial functional application.
      
      To make it easier to switch between tryFromObj, fromObj and
      maybeFromObj, we unify the latter two functions to the same order
      (object and then key) like the first one. The code churn in the other
      modules is due to this, but the main change in this patch is in
      Utils.hs.
      
      Furthermore, since we change anyway the calls, we do replace fromObj
      with tryFromObj in IAllocator.hs so that we get better error messages.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarBalazs Lecz <leczb@google.com>
      e8230242
  2. Jan 07, 2011
  3. Dec 30, 2010
  4. Dec 23, 2010
  5. Dec 20, 2010
Loading