ghc.git
4 years agoremove old .NET related code
Yuras Shumovich [Fri, 31 Oct 2014 21:12:19 +0000 (16:12 -0500)] 
remove old .NET related code

Summary: It seems to be dead anyway. Also update Haddock submodule.

Test Plan: validate

Reviewers: austin

Reviewed By: austin

Subscribers: thomie, goldfire, carter, simonmar

Differential Revision: https://phabricator.haskell.org/D357

4 years agoSplit off stat (benchmark) test failures into a separate section in the test runner...
Gintautas Miliauskas [Fri, 31 Oct 2014 20:51:16 +0000 (15:51 -0500)] 
Split off stat (benchmark) test failures into a separate section in the test runner summary.

Stat tests are generally less reliable than other types of tests, so it's nice to have
them in a separate section rather than interspersed with potential...

Summary: ...correctness issues.

Reviewers: austin

Reviewed By: austin

Subscribers: thomie, carter, simonmar

Differential Revision: https://phabricator.haskell.org/D406

4 years agoUpdate doctest example style in `Data.Bool`
Michael Orlitzky [Fri, 31 Oct 2014 13:34:56 +0000 (14:34 +0100)] 
Update doctest example style in `Data.Bool`

hvr made some suggestions in D352 and D371, this fixes them in the
already-applied patch for Data/Bool.hs as well for consistency.

Reviewed By: austin, hvr

Differential Revision: https://phabricator.haskell.org/D379

4 years agoAdd changelog entry for recent Unicode 7.0 update
Herbert Valerio Riedel [Fri, 31 Oct 2014 13:30:32 +0000 (14:30 +0100)] 
Add changelog entry for recent Unicode 7.0 update

The internal Unicode definitions were updated via
d4fd16801bc59034abdc6214e60fcce2b21af9c8

[skip ci]

4 years agoClean-up `Data.Fixed`
Herbert Valerio Riedel [Fri, 31 Oct 2014 13:25:45 +0000 (14:25 +0100)] 
Clean-up `Data.Fixed`

This gets rid of `-fno-warn-unused-binds` by turning the E* types into
constructor-less data types (as they're used as phantom-types only)

Moreover, this modules uses `AutoDeriveTypeable` so we can drop all those
redundant `deriving (Typeable)` lines as well

Reviewed By: austin, ekmett

Differential Revision: https://phabricator.haskell.org/D385

4 years agoUpdate Haddock submodule
Herbert Valerio Riedel [Fri, 31 Oct 2014 13:04:57 +0000 (14:04 +0100)] 
Update Haddock submodule

This pulls in a change to have the new "Examples" sections being in
`base` collapsed by default.

4 years agoAdd doctest examples for Data.Char
Michael Orlitzky [Fri, 31 Oct 2014 08:50:00 +0000 (09:50 +0100)] 
Add doctest examples for Data.Char

This adds doctest examples for every function and data type in `Data.Char`.

Reviewed By: austin, hvr

Differential Revision: https://phabricator.haskell.org/D371

4 years agoFix comment typos
Jan Stolarek [Fri, 31 Oct 2014 09:31:40 +0000 (10:31 +0100)] 
Fix comment typos

4 years agoDrop deprecated `OverlappingInstances` from base
Herbert Valerio Riedel [Fri, 31 Oct 2014 07:52:47 +0000 (08:52 +0100)] 
Drop deprecated `OverlappingInstances` from base

With #9242 the `OverlappingInstances` extension got deprecated, this
commit adapts the only two remaining places in `base` where it was still
used.

Starting with this commit, the `Typeable (s t)` instance (which seemingly
was the motivation for using `OverlappingInstances` in the first place
when `Typeable` was neither polykinded nor auto-derived-only, see also
commit ce3fd0e02826367e6134a3362d8d37aa114236f5 which introduced
overlapping instances) does no longer allow overlapping instances, and
there doesn't seem to be any good reason to keep allowing overlapping
instance now.

This also removes redundant `LANGUAGE`/`OPTIONS_GHC` pragmas from
`Data.Typeable` and refactors the language pragmas into more uniform
single-line pragmas.

Reviewed By: austin

Differential Revision: https://phabricator.haskell.org/D377

4 years agoUpdated testsuite/.gitignore to exclude some test artifacts on Windows.
Gintautas Miliauskas [Thu, 30 Oct 2014 16:57:18 +0000 (11:57 -0500)] 
Updated testsuite/.gitignore to exclude some test artifacts on Windows.

Reviewers: austin

Reviewed By: austin

Subscribers: thomie, carter, simonmar

Differential Revision: https://phabricator.haskell.org/D404

4 years agoFixed missing trailing newline bug in pretty printer
Mateusz Lenik [Thu, 30 Oct 2014 16:53:40 +0000 (11:53 -0500)] 
Fixed missing trailing newline bug in pretty printer

Summary:
Pretty printer didn't produce trailing newline in strings in error
messages.

Reviewers: simonpj, austin

Reviewed By: austin

Subscribers: thomie, carter, simonmar, mlen

Differential Revision: https://phabricator.haskell.org/D405

GHC Trac Issues: #9681

4 years agoAdd notes on change to hGetContents semantics
David Feuer [Thu, 30 Oct 2014 16:50:58 +0000 (11:50 -0500)] 
Add notes on change to hGetContents semantics

Summary:
Additionally, move Unicode 7.0 update notice from the compiler
section to the base libraries section.

Reviewers: austin

Reviewed By: austin

Subscribers: thomie, carter, simonmar

Projects: #ghc

Differential Revision: https://phabricator.haskell.org/D401

4 years agoFix test driver python3 compatibility issues
Mateusz Lenik [Thu, 30 Oct 2014 16:50:41 +0000 (11:50 -0500)] 
Fix test driver python3 compatibility issues

Summary:
Fixes python3 compatibility issues by replacing filter with a list
comperhension and a potential issue with python2 when override_flags
would be an empty list.

Reviewers: austin, thomie

Reviewed By: austin, thomie

Subscribers: thomie, carter, simonmar, mlen

Differential Revision: https://phabricator.haskell.org/D399

GHC Trac Issues: #9230

4 years agoComments only
Jan Stolarek [Thu, 30 Oct 2014 10:51:10 +0000 (11:51 +0100)] 
Comments only

4 years agoAdded mingw32-specific expected stdout files for tests/driver/sigof{01,02,03}
Gintautas Miliauskas [Thu, 30 Oct 2014 04:15:25 +0000 (23:15 -0500)] 
Added mingw32-specific expected stdout files for tests/driver/sigof{01,02,03}

Reviewers: austin

Reviewed By: austin

Subscribers: thomie, carter, simonmar

Differential Revision: https://phabricator.haskell.org/D398

4 years agoAdd __GLASGOW_HASKELL_TH__=YES/NO to CPP definitions
Joachim Breitner [Thu, 30 Oct 2014 04:15:07 +0000 (23:15 -0500)] 
Add __GLASGOW_HASKELL_TH__=YES/NO to CPP definitions

Test Plan: None really.

Reviewers: austin

Reviewed By: austin

Subscribers: thomie, carter, simonmar

Differential Revision: https://phabricator.haskell.org/D386

GHC Trac Issues: #9734

4 years agoDo not use a relative path for echo in tests/ghci/prog013.
Gintautas Miliauskas [Thu, 30 Oct 2014 04:14:38 +0000 (23:14 -0500)] 
Do not use a relative path for echo in tests/ghci/prog013.

Trying to run /usr/bin/echo fails when running tests on Windows,
but using plain "echo" works fine. I think it's fine to assume
the environment is not doing anything particularly funny...

Summary:
...with
echo...

Reviewers: austin

Reviewed By: austin

Subscribers: thomie, carter, simonmar, #ghc_windows_task_force

Differential Revision: https://phabricator.haskell.org/D384

4 years agoUpdated stale ghcpkg05.stderr-mingw32.
Gintautas Miliauskas [Thu, 30 Oct 2014 04:14:28 +0000 (23:14 -0500)] 
Updated stale ghcpkg05.stderr-mingw32.

Looks like the mingw32-specific test was accidentally forgotten after
changing the code and the expected outputs for non OS-specific tests.

Reviewers: austin

Reviewed By: austin

Subscribers: #ghc_windows_task_force, thomie, carter, simonmar

Differential Revision: https://phabricator.haskell.org/D383

4 years agoExtra CRs are now filtered out from the source file for :list.
Gintautas Miliauskas [Thu, 30 Oct 2014 04:14:17 +0000 (23:14 -0500)] 
Extra CRs are now filtered out from the source file for :list.

Fixes #9367.

Reviewers: austin

Reviewed By: austin

Subscribers: #ghc_windows_task_force, thomie, carter, simonmar

Differential Revision: https://phabricator.haskell.org/D382

GHC Trac Issues: #9367

4 years agoAvoid setting -Werror=unused-but-set-variable on Windows.
Gintautas Miliauskas [Thu, 30 Oct 2014 04:13:51 +0000 (23:13 -0500)] 
Avoid setting -Werror=unused-but-set-variable on Windows.

Summary:
The option is not needed (it was only intended to override Debian's default)
and causes an error if the host ghc's mingw is too old (which the script
does not detect).

Fixes T9727

Reviewers: austin

Reviewed By: austin

Subscribers: thomie, carter, simonmar

Differential Revision: https://phabricator.haskell.org/D373

GHC Trac Issues: #9727

4 years agoUse snwprintf instead of swprintf in rts/Linker.c.
Gintautas Miliauskas [Thu, 30 Oct 2014 04:13:31 +0000 (23:13 -0500)] 
Use snwprintf instead of swprintf in rts/Linker.c.

Summary:
swprintf has different signatures in mingw32, where it does not include the
buffer size, and in mingw-w64, where it does. That of course breaks the code
as mingw-w64 treats the pointer to the format string as a size_t.

snwprintf is available in both environments and is consistent, so use that
instead.

Reviewers: simonmar, austin

Reviewed By: austin

Subscribers: #ghc_windows_task_force, thomie, carter, simonmar

Differential Revision: https://phabricator.haskell.org/D372

GHC Trac Issues: #9726

4 years agoFix #9236 Error on read from closed handle
David Feuer [Thu, 30 Oct 2014 04:13:07 +0000 (23:13 -0500)] 
Fix #9236 Error on read from closed handle

Summary:
Fixes #9236. My testing indicates that this does *not* lead to problems with
broken pipes and such, but further testing is required. It found
a bug in haddock; I've submitted a pull request upstream.

Reviewers: ekmett, austin

Reviewed By: ekmett, austin

Subscribers: rwbarton, thomie, carter, simonmar

Differential Revision: https://phabricator.haskell.org/D327

GHC Trac Issues: #9236

4 years agoConvert GHCi sources from .lhs to .hs
Rodlogic [Thu, 30 Oct 2014 04:12:54 +0000 (23:12 -0500)] 
Convert GHCi sources from .lhs to .hs

Summary: Signed-off-by: Rodlogic <admin@rodlogic.net>

Test Plan: Does it compile?

Reviewers: hvr, austin

Reviewed By: austin

Subscribers: thomie, carter, simonmar

Differential Revision: https://phabricator.haskell.org/D319

4 years agohsc2hs: Update submodule
Austin Seipp [Thu, 30 Oct 2014 04:04:59 +0000 (23:04 -0500)] 
hsc2hs: Update submodule

This makes sure the --cross-compile mode can handle negative enum
values.

Differential Revision: https://phabricator.haskell.org/D301

Signed-off-by: Austin Seipp <austin@well-typed.com>
4 years agoFixed unused variable warning on mingw32/i686 in rts/Linker.c
Gintautas Miliauskas [Wed, 29 Oct 2014 23:16:12 +0000 (18:16 -0500)] 
Fixed unused variable warning on mingw32/i686 in rts/Linker.c

The warning was breaking validate.sh runs due to -Wall.

Reviewers: austin

Reviewed By: austin

Subscribers: #ghc_windows_task_force, thomie, carter, simonmar

Differential Revision: https://phabricator.haskell.org/D400

4 years agoReally fix fft2 regression. #9740
David Feuer [Wed, 29 Oct 2014 14:47:57 +0000 (15:47 +0100)] 
Really fix fft2 regression. #9740

Rewrite `take` more aggressively for fusion. Add some more explicit
strictness to `unsafeTake` and `unsafeDrop` that seems to help code size and
allocation just a drop in some nofib tests. They were not previously
strict in their numerical arguments, but always called in contexts where
those had been forced; it didn't make a difference in simple test cases,
but made a small difference for nofib. See #9740.

Differential Revision: https://phabricator.haskell.org/D394

4 years agoUpdate Haddock submodule for collapsible section support
Herbert Valerio Riedel [Wed, 29 Oct 2014 09:08:26 +0000 (10:08 +0100)] 
Update Haddock submodule for collapsible section support

This also updates a few occurences of recently added "Example"
headings to make use of this new feature for testing

4 years agoReorder GHC.List; fix performance regressions
David Feuer [Wed, 29 Oct 2014 07:15:08 +0000 (08:15 +0100)] 
Reorder GHC.List; fix performance regressions

Rearrange some oddly placed code.

Modify `take` to make the fold unconditionally strict in the passed
`Int`. This clears up the `fft2` regression.
This fixes #9740. Differential Revision: https://phabricator.haskell.org/D390

4 years agobase: Refactor/clean-up *List modules
David Feuer [Tue, 28 Oct 2014 14:26:39 +0000 (15:26 +0100)] 
base: Refactor/clean-up *List modules

This gets rid of all hand-unboxing in `GHC.List` and moves `Foldable`
requirements from `Data.OldList` into `GHC.List` (preparatory work for
addressing #9716).  Specifically, this moves the definition of
`maximum`, `minimum`, `foldl'`, `foldl1`, `foldl1'`, `sum`, and
`product` into `GHC.List` (which now needs to import `GHC.Num`)

Make `take`, `drop`, `length`, and `!!` generally saner (see also #9510)

Performance overall seems minimally affected. Some things go up; some
things go down; nothing moves horribly much. The code is much easier to
read.

Differential Revision: https://phabricator.haskell.org/D380

4 years agoMake iterateFB inlineable
Joachim Breitner [Tue, 28 Oct 2014 14:28:59 +0000 (15:28 +0100)] 
Make iterateFB inlineable

When investigating a case of unexpected Call Arity failure I noticed
that iterateFB would not inline as far as desired, as it is recursive.

This patch makes it non-recursive (with a local go), which seem so do
great good.

4 years agotestlib: Get rid of two_normalisers
Joachim Breitner [Tue, 28 Oct 2014 10:21:49 +0000 (11:21 +0100)] 
testlib: Get rid of two_normalisers

And make normalise_fun polyvariadic. After all, this is untyped code, so
lets make use of it :-)

4 years agoAdd n-ary version of `two_normalisers` to testsuite lib
Herbert Valerio Riedel [Tue, 28 Oct 2014 09:42:34 +0000 (10:42 +0100)] 
Add n-ary version of `two_normalisers` to testsuite lib

This is more readable than nesting `two_normalisers()`-invocations

4 years agoNormalise package key hash to make tests less fragile.
Edward Z. Yang [Tue, 28 Oct 2014 00:52:39 +0000 (17:52 -0700)] 
Normalise package key hash to make tests less fragile.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
4 years agoTypo in comment
Gabor Greif [Mon, 27 Oct 2014 23:17:13 +0000 (00:17 +0100)] 
Typo in comment

4 years agoImprove performance of isSuffixOf (#9676)
David Feuer [Mon, 27 Oct 2014 21:12:07 +0000 (22:12 +0100)] 
Improve performance of isSuffixOf (#9676)

The new implementation avoids reversing the "haystack" list, which can be
very expensive.

Reviewed By: ekmett

Differential Revision: https://phabricator.haskell.org/D330

4 years agoDeactivate T3064 `max_bytes_used`-check
Herbert Valerio Riedel [Mon, 27 Oct 2014 18:37:16 +0000 (19:37 +0100)] 
Deactivate T3064 `max_bytes_used`-check

Summary:
T3064 is deactivated for now because it's currently too volatile
and causes too much noise in Phabricator's CI

C.f. 4805abf413c02a2ed1af4fbeca2476590e984e37

Reviewers: austin

Subscribers: thomie, carter, ezyang, simonmar

Differential Revision: https://phabricator.haskell.org/D381

4 years agoUn-wire `Integer` type (re #9714)
Herbert Valerio Riedel [Mon, 27 Oct 2014 15:44:36 +0000 (16:44 +0100)] 
Un-wire `Integer` type (re #9714)

Integer is currently a wired-in type for integer-gmp. This requires
replicating its inner structure in `TysWiredIn`, which makes it much
harder to change Integer to a more complex representation (as
e.g. needed for implementing #9281)

This commit stops `Integer` being a wired-in type, and makes it
known-key type instead, thereby simplifying code notably.

Reviewed By: austin

Differential Revision: https://phabricator.haskell.org/D351

4 years agoOptimise atomicModifyIORef' implementation (#8345)
David Feuer [Mon, 27 Oct 2014 09:21:20 +0000 (10:21 +0100)] 
Optimise atomicModifyIORef' implementation (#8345)

This forces the new value before installing it in the IORef.

This optimisation was originally suggested by Patrick Palka
and "exhibits a speedup of 1.7x (vanilla RTS) / 1.4x (threaded RTS)"
according to #8345

Reviewed By: austin, simonmar

Differential Revision: https://phabricator.haskell.org/D315

4 years agoAdd new `Data.Bifunctor` module (re #9682)
Herbert Valerio Riedel [Sun, 26 Oct 2014 07:49:38 +0000 (08:49 +0100)] 
Add new `Data.Bifunctor` module (re #9682)

This adds the module `Data.Bifunctor` providing the
`Bifunctor(bimap,first,second)` class and a couple of instances

This module and the class were previously exported by the `bifunctors`
package.  In contrast to the original module all `INLINE` pragmas have
been removed.

Reviewed By: ekmett, austin, dolio

Differential Revision: https://phabricator.haskell.org/D336

4 years agotestsuite: Fix outdated output for T5979/safePkg01
Austin Seipp [Sun, 26 Oct 2014 05:45:56 +0000 (00:45 -0500)] 
testsuite: Fix outdated output for T5979/safePkg01

Looks like it was broken in aa4799534225.

Signed-off-by: Austin Seipp <austin@well-typed.com>
4 years ago`M-x delete-trailing-whitespace` & `M-x untabify`
Herbert Valerio Riedel [Sat, 25 Oct 2014 14:11:21 +0000 (16:11 +0200)] 
`M-x delete-trailing-whitespace` & `M-x untabify`

This removes all remaining tabs from `base`'s source code

4 years agoPass in CXX to libffi's configure script.
Gintautas Miliauskas [Sat, 25 Oct 2014 00:27:05 +0000 (19:27 -0500)] 
Pass in CXX to libffi's configure script.

Reviewers: austin

Reviewed By: austin

Subscribers: thomie, carter, ezyang, simonmar

Differential Revision: https://phabricator.haskell.org/D370

GHC Trac Issues: #9720

4 years agofix a typo in comments: normaliseFfiType
Yuras Shumovich [Sat, 25 Oct 2014 00:26:55 +0000 (19:26 -0500)] 
fix a typo in comments: normaliseFfiType

Summary:
The function is defined in TcForeign module, but misspelled comment
makes it hard to find

Reviewers: austin

Reviewed By: austin

Subscribers: thomie, carter, ezyang, simonmar

Differential Revision: https://phabricator.haskell.org/D368

4 years agoFix windows build failure.
Austin Seipp [Fri, 24 Oct 2014 22:57:50 +0000 (17:57 -0500)] 
Fix windows build failure.

Authored-by: Simon Marlow <marlowsd@gmail.com>
Signed-off-by: Austin Seipp <austin@well-typed.com>
4 years agoImplementation of hsig (module signatures), per #9252
Edward Z. Yang [Thu, 7 Aug 2014 17:32:12 +0000 (18:32 +0100)] 
Implementation of hsig (module signatures), per #9252

Summary:
Module signatures, like hs-boot files, are Haskell modules which omit
value definitions and contain only signatures.  This patchset implements
one particular aspect of module signature, namely compiling them against
a concrete implementation.  It works like this: when we compile an hsig
file, we must be told (via the -sig-of flag) what module this signature
is implementing.  The signature is compiled into an interface file which
reexports precisely the entities mentioned in the signature file.  We also
verify that the interface is compatible with the implementation.

This feature is useful in a few situations:

    1. Like explicit import lists, signatures can be used to reduce
    sensitivity to upstream changes.  However, a signature can be defined
    once and then reused by many modules.

    2. Signatures can be used to quickly check if a new upstream version
    is compatible, by typechecking just the signatures and not the actual
    modules.

    3. A signature can be used to mediate separate modular development,
    where the signature is used as a placeholder for functionality which
    is loaded in later.  (This is only half useful at the moment, since
    typechecking against signatures without implementations is not implemented
    in this patchset.)

Unlike hs-boot files, hsig files impose no performance overhead.

This patchset punts on the type class instances (and type families) problem:
instances simply leak from the implementation to the signature.  You can
explicitly specify what instances you expect to have, and those will be checked,
but you may get more instances than you asked for.  Our eventual plan is
to allow hiding instances, but to consider all transitively reachable instances
when considering overlap and soundness.

ToDo: signature merging: when a module is provided by multiple signatures
for the same base implementation, we should not consider this ambiguous.

ToDo: at the moment, signatures do not constitute use-sites, so if you
write a signature for a deprecated function, you won't get a warning
when you compile the signature.

Future work: The ability to feed in shaping information so that we can take
advantage of more type equalities than might be immediately evident.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
Test Plan: validate and new tests

Reviewers: simonpj, simonmar, hvr, austin

Subscribers: simonmar, relrod, ezyang, carter, goldfire

Differential Revision: https://phabricator.haskell.org/D130

GHC Trac Issues: #9252

5 years agoCheck in up-to-date PDF copies of Backpack docs. [skip ci]
Edward Z. Yang [Fri, 24 Oct 2014 01:20:25 +0000 (18:20 -0700)] 
Check in up-to-date PDF copies of Backpack docs. [skip ci]

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
5 years agoMore updates to Backpack manual [skip ci]
Edward Z. Yang [Fri, 24 Oct 2014 01:19:46 +0000 (18:19 -0700)] 
More updates to Backpack manual [skip ci]

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
5 years agoFix a rare parallel GC bug
Simon Marlow [Thu, 23 Oct 2014 10:12:16 +0000 (11:12 +0100)] 
Fix a rare parallel GC bug

When there's a conflict between two threads evacuating the same TSO,
in some cases we would update the incall->tso pointer to point to the
wrong copy of the TSO.  This would get fixed during the next GC, but
if the thread completed in the meantime, it would likely crash.  We're
seeing this about once per day on a heavily loaded machine (it varies
a lot though).

5 years agoAdd forgotten import to T9692
Joachim Breitner [Wed, 22 Oct 2014 13:02:42 +0000 (15:02 +0200)] 
Add forgotten import to T9692

(sorry)

5 years agoFlush stdout in T9692
Joachim Breitner [Wed, 22 Oct 2014 08:49:35 +0000 (10:49 +0200)] 
Flush stdout in T9692

5 years agobase: Mark WCsubst.c as generated for Phabricator
Austin Seipp [Tue, 21 Oct 2014 21:50:23 +0000 (16:50 -0500)] 
base: Mark WCsubst.c as generated for Phabricator

Signed-off-by: Austin Seipp <austin@well-typed.com>
5 years agorts: Detabify Interpreter.c
Austin Seipp [Tue, 21 Oct 2014 21:45:57 +0000 (16:45 -0500)] 
rts: Detabify Interpreter.c

Signed-off-by: Austin Seipp <austin@well-typed.com>
5 years ago[skip ci] rts: Detabify Schedule.c
Austin Seipp [Tue, 21 Oct 2014 21:45:19 +0000 (16:45 -0500)] 
[skip ci] rts: Detabify Schedule.c

Signed-off-by: Austin Seipp <austin@well-typed.com>
5 years ago[skip ci] rts: Detabify ProfHeap.c
Austin Seipp [Tue, 21 Oct 2014 21:44:41 +0000 (16:44 -0500)] 
[skip ci] rts: Detabify ProfHeap.c

Signed-off-by: Austin Seipp <austin@well-typed.com>
5 years ago[skip ci] rts: Detabify RetainerProfile.c
Austin Seipp [Tue, 21 Oct 2014 21:44:19 +0000 (16:44 -0500)] 
[skip ci] rts: Detabify RetainerProfile.c

Signed-off-by: Austin Seipp <austin@well-typed.com>
5 years ago[skip ci] rts: Detabify sm/Compact.h
Austin Seipp [Tue, 21 Oct 2014 21:43:04 +0000 (16:43 -0500)] 
[skip ci] rts: Detabify sm/Compact.h

Signed-off-by: Austin Seipp <austin@well-typed.com>
5 years ago[skip ci] rts: Detabify sm/Compact.c
Austin Seipp [Tue, 21 Oct 2014 21:42:49 +0000 (16:42 -0500)] 
[skip ci] rts: Detabify sm/Compact.c

Signed-off-by: Austin Seipp <austin@well-typed.com>
5 years ago[skip ci] rts: Detabify sm/Sanity.c
Austin Seipp [Tue, 21 Oct 2014 21:42:24 +0000 (16:42 -0500)] 
[skip ci] rts: Detabify sm/Sanity.c

Signed-off-by: Austin Seipp <austin@well-typed.com>
5 years ago[skip ci] rts: Detabify sm/GC.c
Austin Seipp [Tue, 21 Oct 2014 21:42:10 +0000 (16:42 -0500)] 
[skip ci] rts: Detabify sm/GC.c

Signed-off-by: Austin Seipp <austin@well-typed.com>
5 years ago[skip ci] rts: Detabify RaiseAsync.c
Austin Seipp [Tue, 21 Oct 2014 21:41:02 +0000 (16:41 -0500)] 
[skip ci] rts: Detabify RaiseAsync.c

Signed-off-by: Austin Seipp <austin@well-typed.com>
5 years ago[skip ci] rts: Detabify Capability.c
Austin Seipp [Tue, 21 Oct 2014 21:40:40 +0000 (16:40 -0500)] 
[skip ci] rts: Detabify Capability.c

Signed-off-by: Austin Seipp <austin@well-typed.com>
5 years ago[skip ci] rts: Detabify HeapStackCheck.cmm
Austin Seipp [Tue, 21 Oct 2014 21:39:44 +0000 (16:39 -0500)] 
[skip ci] rts: Detabify HeapStackCheck.cmm

Signed-off-by: Austin Seipp <austin@well-typed.com>
5 years ago[skip ci] rts: Detabify Exception.cmm
Austin Seipp [Tue, 21 Oct 2014 21:39:15 +0000 (16:39 -0500)] 
[skip ci] rts: Detabify Exception.cmm

Signed-off-by: Austin Seipp <austin@well-typed.com>
5 years ago[skip ci] rts: Detabify Proftimer.c
Austin Seipp [Tue, 21 Oct 2014 21:38:27 +0000 (16:38 -0500)] 
[skip ci] rts: Detabify Proftimer.c

Signed-off-by: Austin Seipp <austin@well-typed.com>
5 years ago[skip ci] rts: Detabify LdvProfile.h
Austin Seipp [Tue, 21 Oct 2014 21:38:06 +0000 (16:38 -0500)] 
[skip ci] rts: Detabify LdvProfile.h

Signed-off-by: Austin Seipp <austin@well-typed.com>
5 years ago[skip ci] rts: Detabify Schedule.h
Austin Seipp [Tue, 21 Oct 2014 21:37:53 +0000 (16:37 -0500)] 
[skip ci] rts: Detabify Schedule.h

Signed-off-by: Austin Seipp <austin@well-typed.com>
5 years ago[skip ci] rts: Detabify Stats.c
Austin Seipp [Tue, 21 Oct 2014 21:37:09 +0000 (16:37 -0500)] 
[skip ci] rts: Detabify Stats.c

Signed-off-by: Austin Seipp <austin@well-typed.com>
5 years ago[skip ci] rts: Detabify sm/Scav.c
Austin Seipp [Tue, 21 Oct 2014 21:36:30 +0000 (16:36 -0500)] 
[skip ci] rts: Detabify sm/Scav.c

Signed-off-by: Austin Seipp <austin@well-typed.com>
5 years ago[skip ci] rts: Detabify sm/Evac.c
Austin Seipp [Tue, 21 Oct 2014 21:35:59 +0000 (16:35 -0500)] 
[skip ci] rts: Detabify sm/Evac.c

Signed-off-by: Austin Seipp <austin@well-typed.com>
5 years ago[skip ci] rts: Detabify Threads.c
Austin Seipp [Tue, 21 Oct 2014 21:34:07 +0000 (16:34 -0500)] 
[skip ci] rts: Detabify Threads.c

Signed-off-by: Austin Seipp <austin@well-typed.com>
5 years ago[skip ci] rts: Detabify Profiling.c
Austin Seipp [Tue, 21 Oct 2014 21:33:46 +0000 (16:33 -0500)] 
[skip ci] rts: Detabify Profiling.c

Signed-off-by: Austin Seipp <austin@well-typed.com>
5 years ago[skip ci] rts: Detabify CheckUnload.c
Austin Seipp [Tue, 21 Oct 2014 21:33:29 +0000 (16:33 -0500)] 
[skip ci] rts: Detabify CheckUnload.c

Signed-off-by: Austin Seipp <austin@well-typed.com>
5 years ago[skip ci] rts: Detabify Capability.h
Austin Seipp [Tue, 21 Oct 2014 21:32:58 +0000 (16:32 -0500)] 
[skip ci] rts: Detabify Capability.h

Signed-off-by: Austin Seipp <austin@well-typed.com>
5 years ago[skip ci] rts: Detabify RaiseAsync.h
Austin Seipp [Tue, 21 Oct 2014 21:32:20 +0000 (16:32 -0500)] 
[skip ci] rts: Detabify RaiseAsync.h

Signed-off-by: Austin Seipp <austin@well-typed.com>
5 years ago[skip ci] rts: Detabify RtsMessages.c
Austin Seipp [Tue, 21 Oct 2014 21:31:22 +0000 (16:31 -0500)] 
[skip ci] rts: Detabify RtsMessages.c

Signed-off-by: Austin Seipp <austin@well-typed.com>
5 years agoEnabled warn on tabs by default (fixes #9230)
Mateusz Lenik [Tue, 21 Oct 2014 20:34:00 +0000 (15:34 -0500)] 
Enabled warn on tabs by default (fixes #9230)

Summary:
This revision enables -fwarn-tabs by default and add a suppression
flag, so that GHC compilation won't fail when some files contain tab
characters.

Test Plan: Additional test case, T9230, was added to cover that change.

Reviewers: austin

Reviewed By: austin

Subscribers: simonmar, ezyang, carter, thomie, mlen

Differential Revision: https://phabricator.haskell.org/D255

GHC Trac Issues: #9230

Conflicts:
testsuite/driver/testlib.py

5 years agoFixes the ARM build
Moritz Angermann [Tue, 21 Oct 2014 20:33:18 +0000 (15:33 -0500)] 
Fixes the ARM build

Summary:
CodeGen.Platform.hs was changed with the following diff:

   -#endif
    globalRegMaybe _                        = Nothing
   +#elif MACHREGS_NO_REGS
   +globalRegMaybe _ = Nothing
   +#else
   +globalRegMaybe = panic "globalRegMaybe not defined for this platform"
   +#endif

which causes globalRegMaybe ot panic for arch ARM.

This patch ensures globalRegMaybe is not called on ARM.

Signed-off-by: Moritz Angermann <moritz@lichtzwerge.de>
Test Plan: Building arm cross-compiler (e.g. --target=arm-apple-darwin10)

Reviewers: hvr, ezyang, simonmar, rwbarton, austin

Reviewed By: austin

Subscribers: dterei, bgamari, simonmar, ezyang, carter

Differential Revision: https://phabricator.haskell.org/D208

GHC Trac Issues: #9593

5 years agoAdd release note about Unicode 7.0
Austin Seipp [Tue, 21 Oct 2014 20:31:57 +0000 (15:31 -0500)] 
Add release note about Unicode 7.0

Signed-off-by: Austin Seipp <austin@well-typed.com>
5 years agoAdd doctest examples for Data.Bool.
Michael Orlitzky [Tue, 21 Oct 2014 20:02:29 +0000 (15:02 -0500)] 
Add doctest examples for Data.Bool.

Summary:
Add examples for `Data.Bool`, and rework the existing documentation of
the `bool` function slightly: the `a`,`b` in its explanation were changed
to `x`,`y` to avoid ambiguity with the type variable 'a'.

The examples have been tested, and two trailing spaces were removed.

Reviewers: austin

Reviewed By: austin

Subscribers: thomie, carter, ezyang, simonmar

Differential Revision: https://phabricator.haskell.org/D360

5 years agoFix typo in -XConstraintKinds docs
Ricky Elrod [Tue, 21 Oct 2014 20:02:21 +0000 (15:02 -0500)] 
Fix typo in -XConstraintKinds docs

Summary:
Fix a minor typo that seems to have existed for a long time.

Signed-off-by: Ricky Elrod <ricky@elrod.me>
Test Plan: My eyes.

Reviewers: austin, #ghc

Reviewed By: austin, #ghc

Subscribers: thomie, carter, ezyang, simonmar

Differential Revision: https://phabricator.haskell.org/D356

5 years agoAdd doctest examples for Data.Functor.
Michael Orlitzky [Tue, 21 Oct 2014 20:02:11 +0000 (15:02 -0500)] 
Add doctest examples for Data.Functor.

Summary:
Add doctest examples for the three standalone functions defined in
Data.Functor:

  * Data.Functor.$>
  * Data.Functor.<$>
  * Data.Functor.void

This is part of a larger plan to add examples for the functions in
base, and to eventually enable automatic testing of them.

Reviewers: austin, hvr, ekmett

Reviewed By: austin

Subscribers: hvr, ekmett, thomie, carter, ezyang, simonmar

Differential Revision: https://phabricator.haskell.org/D352

5 years agoMake Data.List.concatMap fuse better
David Feuer [Tue, 21 Oct 2014 20:02:03 +0000 (15:02 -0500)] 
Make Data.List.concatMap fuse better

Summary:
Fix #9537 precisely as Joachim Breitner proposed in
http://www.haskell.org/pipermail/haskell-cafe/2011-December/097228.html

Reviewers: austin, nomeata

Reviewed By: austin, nomeata

Subscribers: thomie, carter, ezyang, simonmar

Differential Revision: https://phabricator.haskell.org/D348

GHC Trac Issues: #9537

5 years agoMake findIndices fuse
David Feuer [Tue, 21 Oct 2014 20:01:26 +0000 (15:01 -0500)] 
Make findIndices fuse

Summary:
Steal the findIndices implementation from Data.Sequence, that can
participate in fold/build fusion

Reviewers: nomeata, austin

Reviewed By: nomeata, austin

Subscribers: thomie, carter, ezyang, simonmar

Differential Revision: https://phabricator.haskell.org/D345

5 years agoImprove isDigit, isSpace, etc.
David Feuer [Tue, 21 Oct 2014 20:01:14 +0000 (15:01 -0500)] 
Improve isDigit, isSpace, etc.

Summary:
Make things less branchy; use unsigned comparisons for range checking.
Eliminate non-spaces more quickly in common cases in isSpace.

Reviewers: ekmett, carter, austin

Reviewed By: austin

Subscribers: thomie, carter, ezyang, simonmar

Differential Revision: https://phabricator.haskell.org/D340

GHC Trac Issues: #1473

5 years agoRemove extra period
Matt Kraai [Tue, 21 Oct 2014 20:00:51 +0000 (15:00 -0500)] 
Remove extra period

Summary:
The documentation has an extra period, which is rendered as

> However, GHCi also has support for interactively loading compiled
> code, as well as supporting all[2] the language extensions that GHC
> provides. .

Removing the extra period should fix this problem.

Reviewers: austin

Reviewed By: austin

Subscribers: thomie, carter, ezyang, simonmar

Differential Revision: https://phabricator.haskell.org/D326

5 years agoUpdate to Unicode version 7.0
David Feuer [Tue, 21 Oct 2014 20:00:33 +0000 (15:00 -0500)] 
Update to Unicode version 7.0

Summary: Update Unicode data to version 7.0

Reviewers: rwbarton, austin

Reviewed By: austin

Subscribers: thomie, carter, ezyang, simonmar

Differential Revision: https://phabricator.haskell.org/D316

5 years agoghc-prim: Use population count appropriate for platform
Ben Gamari [Tue, 21 Oct 2014 20:00:02 +0000 (15:00 -0500)] 
ghc-prim: Use population count appropriate for platform

Summary:
This #ifdef was previously x86-centric and consequently the 64-bit
implementation was chosen for ARM.

Reviewers: rwbarton, hvr, austin, tibbe

Reviewed By: hvr, austin, tibbe

Subscribers: hvr, thomie, carter, ezyang, simonmar

Differential Revision: https://phabricator.haskell.org/D312

5 years agoUse objdump instead of nm to derive constants on OpenBSD
Austin Seipp [Tue, 21 Oct 2014 19:58:21 +0000 (14:58 -0500)] 
Use objdump instead of nm to derive constants on OpenBSD

Summary: OpenBSD's nm doesn't support the -P option and there appears to be no other way to get the desired information from it.

Reviewers: kgardas, #ghc, austin

Reviewed By: kgardas, #ghc, austin

Subscribers: austin, ggreif

Projects: #ghc

Differential Revision: https://phabricator.haskell.org/D332

GHC Trac Issues: #9549

5 years agoUpdated testsuite/.gitignore to cover artifacts on Windows.
Gintautas Miliauskas [Tue, 21 Oct 2014 19:57:57 +0000 (14:57 -0500)] 
Updated testsuite/.gitignore to cover artifacts on Windows.

Test Plan: git status after a test run

Reviewers: austin

Reviewed By: austin

Subscribers: thomie, carter, ezyang, simonmar

Differential Revision: https://phabricator.haskell.org/D333

GHC Trac Issues: #9679

5 years agoMake Applicative-Monad fixes for tests.
Geoffrey Mainland [Thu, 2 Oct 2014 21:39:34 +0000 (17:39 -0400)] 
Make Applicative-Monad fixes for tests.

5 years agoUpdate primitive, vector, and dph submodules.
Geoffrey Mainland [Thu, 28 Aug 2014 02:33:44 +0000 (22:33 -0400)] 
Update primitive, vector, and dph submodules.

5 years agoReify data family instances correctly.
Richard Eisenberg [Mon, 20 Oct 2014 19:36:57 +0000 (15:36 -0400)] 
Reify data family instances correctly.

Summary:
Fix #9692.

The reifier didn't account for the possibility that data/newtype
instances are sometimes eta-reduced. It now eta-expands as necessary.

Test Plan: th/T9692

Reviewers: simonpj, austin

Subscribers: thomie, carter, ezyang, simonmar

Differential Revision: https://phabricator.haskell.org/D355

5 years agoClarify location of Note. Comment change only.
Richard Eisenberg [Mon, 20 Oct 2014 19:36:37 +0000 (15:36 -0400)] 
Clarify location of Note. Comment change only.

5 years agoTest #9692 in th/T9692
Richard Eisenberg [Mon, 20 Oct 2014 19:11:59 +0000 (15:11 -0400)] 
Test #9692 in th/T9692

5 years agoRevert "rts/PrimOps.cmm: follow '_static_closure' update"
Sergei Trofimovich [Tue, 21 Oct 2014 08:40:07 +0000 (09:40 +0100)] 
Revert "rts/PrimOps.cmm: follow '_static_closure' update"

This reverts commit eb191ab6c85f4b668a6e9151dcecaf1f1e7ec7c2.

Follows revert of STATIC_CLOSURE and restores UNREG build.

5 years agoUpdate Haddock submodule
Austin Seipp [Tue, 21 Oct 2014 01:08:14 +0000 (20:08 -0500)] 
Update Haddock submodule

As requested by Yuras Shumovich, this updates Haddock to include
.arcconfig and .arclint files, so diffs for GHC patches can go into
Phabricator.

Signed-off-by: Austin Seipp <austin@well-typed.com>
5 years agoRevert "Place static closures in their own section."
Edward Z. Yang [Mon, 20 Oct 2014 23:03:50 +0000 (16:03 -0700)] 
Revert "Place static closures in their own section."

This reverts commit b23ba2a7d612c6b466521399b33fe9aacf5c4f75.

Conflicts:
compiler/cmm/PprCmmDecl.hs
compiler/nativeGen/PPC/Ppr.hs
compiler/nativeGen/SPARC/Ppr.hs
compiler/nativeGen/X86/Ppr.hs

5 years agoRevert "BC-breaking changes to C-- CLOSURE syntax."
Edward Z. Yang [Mon, 20 Oct 2014 23:01:45 +0000 (16:01 -0700)] 
Revert "BC-breaking changes to C-- CLOSURE syntax."

This reverts commit 3b5a840bba375c4c4c11ccfeb283f84c3a1ef22c.

5 years agoRevert "Properly generate info tables for static closures in C--."
Edward Z. Yang [Mon, 20 Oct 2014 23:01:39 +0000 (16:01 -0700)] 
Revert "Properly generate info tables for static closures in C--."

This reverts commit 178eb9060f369b216f3f401196e28eab4af5624d.

5 years agoRevert "Rename _closure to _static_closure, apply naming consistently."
Edward Z. Yang [Mon, 20 Oct 2014 22:57:13 +0000 (15:57 -0700)] 
Revert "Rename _closure to _static_closure, apply naming consistently."

This reverts commit 35672072b4091d6f0031417bc160c568f22d0469.

Conflicts:
compiler/main/DriverPipeline.hs