1. 15 Jan, 2014 1 commit
    • Austin Seipp's avatar
      Turn -XTypeHoles into a (on by default) warning · 235fd88a
      Austin Seipp authored
      After some discussion on ghc-devs@ and elsewhere, it seemed favorable to
      make this change as type holes don't let any invalid programs though,
      they merely change what the compiler reports in case of certain errors
      (namely unbound occurrences, or _ appearing on a LHS.)
      Now, the warning mechanism is controlled by -f[no-]warn-type-errors,
      just like any other regular warning. Again, on by default.
      The documentation and tests have been updated accordingly.
      Signed-off-by: default avatarAustin Seipp <austin@well-typed.com>
  2. 14 Jan, 2014 3 commits
  3. 13 Jan, 2014 1 commit
  4. 10 Jan, 2014 1 commit
    • Simon Peyton Jones's avatar
      Make showSDoc and friends respect -dppr-cols · 08a3536e
      Simon Peyton Jones authored
      Previously they just used a fixed width of 100, ignoring
      -dppr-cols.  I think this dates back to a time when
      the flag didn't exist, or wasn't conveniently available.
      Thanks to Andrew Gibiansky for pointing this out.
  5. 07 Jan, 2014 1 commit
  6. 09 Dec, 2013 1 commit
    • Joachim Breitner's avatar
      New flag: -ddump-strsigs · 3f6da561
      Joachim Breitner authored
      The existing flag -ddump-stranal dumps the full Core, which is very
      verbose and not always helpful. This adds a more concise output (one
      line per top-level bind) that is faster to read, and especially more
      suitable to be used when writing test cases for the strictness analiser.
  7. 01 Dec, 2013 1 commit
  8. 22 Nov, 2013 1 commit
  9. 12 Nov, 2013 1 commit
  10. 06 Nov, 2013 3 commits
  11. 11 Oct, 2013 1 commit
  12. 09 Oct, 2013 1 commit
  13. 02 Oct, 2013 1 commit
  14. 01 Oct, 2013 4 commits
  15. 29 Sep, 2013 1 commit
  16. 23 Sep, 2013 4 commits
  17. 22 Sep, 2013 1 commit
  18. 18 Sep, 2013 1 commit
  19. 13 Sep, 2013 1 commit
  20. 12 Sep, 2013 1 commit
    • Austin Seipp's avatar
      Implement the AMP warning (#8004) · 75a9664a
      Austin Seipp authored
      This patch implements a warning when definitions conflict with the
      Applicative-Monad Proposal (AMP), described in #8004. Namely, this will
      cause a warning iff:
          * You have an instance of Monad, but not Applicative
          * You have an instance of MonadPlus, but not Alternative
          * You locally defined a function named join, <*>, or pure.
      In GHC 7.10, these warnings will actually be enforced with superclass
      constraints through changes in base, so programs will fail to compile
      This warning is enabled by default. Unfortunately, not all of
      our upstream libraries have accepted the appropriate patches. So we
      temporarily fix ./validate by ignoring the AMP warning.
      Dan Rosén made an initial implementation of this change, and the
      remaining work was finished off by David Luposchainsky. I finally made
      some minor refactorings.
      Authored-by: danr's avatarDan Rosén <danr@chalmers.se>
      Authored-by: quchen's avatarDavid Luposchainsky <dluposchainsky@gmail.com>
      Signed-off-by: default avatarAustin Seipp <austin@well-typed.com>
  21. 09 Sep, 2013 1 commit
  22. 08 Sep, 2013 1 commit
  23. 06 Sep, 2013 2 commits
    • thoughtpolice's avatar
      Add basic support for GHCJS · b372e8ea
      thoughtpolice authored
      This patch encompasses most of the basic infrastructure for GHCJS. It
        * A new extension, -XJavaScriptFFI
        * A new architecture, ArchJavaScript
        * Parser and lexer support for 'foreign import javascript', only
          available under -XJavaScriptFFI, using ArchJavaScript.
        * As a knock-on, there is also a new 'WayCustom' constructor in
          DynFlags, so clients of the GHC API can add custom 'tags' to their
          built files. This should be useful for other users as well.
      The remaining changes are really just the resulting fallout, making sure
      all the cases are handled appropriately for DynFlags and Platform.
      Authored-by: Luite Stegeman's avatarLuite Stegeman <stegeman@gmail.com>
      Signed-off-by: thoughtpolice's avatarAustin Seipp <aseipp@pobox.com>
    • parcs's avatar
  24. 30 Aug, 2013 2 commits
  25. 29 Aug, 2013 3 commits
  26. 28 Aug, 2013 1 commit
    • thoughtpolice's avatar
      Rework how iOS does linking (#8127) · 98b0d05d
      thoughtpolice authored
      iOS has some particular constraints about how applications can be built:
       * We must generate a static library (.a) since XCode does the final
       * We need to carefully give the right set of arguments to libtool in
         the case we're generating an archive.
       * Dynamic linking isn't supported.
       * It can only be done on OS X.
      This patch cleans up all of the above. We add a new flag `-staticlib`
      (only supported on Darwin) that allows us to produce archive files using
      libtool, and a -pgmlibtool flag to control which 'libtool' executable to
      This fixes #8127. I believe this is the last piece missing from the iOS
      cross compiler.
      Authored-by: lukexi's avatarLuke Iannini <lukexi@me.com>
      Authored-by: maxs's avatarMaxwell Swadling <maxwellswadling@gmail.com>
      Authored-by: default avatarStephen Blackheath <...@blacksapphire.com>
      Signed-off-by: thoughtpolice's avatarAustin Seipp <aseipp@pobox.com>