Skip to content
  • Simon Peyton Jones's avatar
    Define ListSetOps.getNth, and use it · b0c0cae7
    Simon Peyton Jones authored
    I was tracking down an error looking like
      Prelude.(!!): index too large
    which is very unhelpful.  This patch replaces at least some uses
    of (!!) in GHC with getNth, which has a more helpful error
    message (with DEBUG anyway)
    b0c0cae7