Re: Register Allocator Tests

2016-10-11 Thread Thomas Jakway
Ah okay, thanks! On Oct 11, 2016 8:25 PM, "Ömer Sinan Ağacan" wrote: > > Is it not possible to unit test GHC? > > You need to export functions you want to test, and then write a program > that > tests those functions using the `ghc` package. > > See >

Re: Register Allocator Tests

2016-10-11 Thread Ömer Sinan Ağacan
> Is it not possible to unit test GHC? You need to export functions you want to test, and then write a program that tests those functions using the `ghc` package. See https://github.com/ghc/ghc/blob/master/testsuite/tests/unboxedsums/unboxedsums_unit_tests.hs for an example. 2016-10-11 17:50

Re: Register Allocator Tests

2016-10-11 Thread Thomas Jakway
I read somewhere that fixing the graph register allocator would be a good project so I thought I'd look into it. I couldn't find any tickets about it on Trac though so I was poking around for tests to see what (if anything) was wrong with it. After I sent that last email I googled around for

Re: Register Allocator Tests

2016-10-11 Thread Ben Gamari
Thomas Jakway writes: > Can anyone point me to the register allocator tests (especially for the > graph register allocator)? Can't seem to find them and grepping doesn't > turn up much (pretty much just > testsuite/tests/codeGen/should_run/cgrun028.h). > What sort of tests

Re: qualified module export

2016-10-11 Thread Iavor Diatchki
Hello, There may be some more thinking to be done on the design of this feature. In particular, if a module `M` has en export declaration `module T`, this is not at all the same as adding `import T` in modules exporting `M`. The reason is that meaning of `module T` depends on what is in scope in

qualified module export

2016-10-11 Thread Karl Cronburg
Hello, I'm attempting to add support for export of qualified modules (feature request #8043), and any guidance would be greatly appreciated. Namely I'm very familiar with languages / grammars / happy and was easily able to add an appropriate production alternative to Parser.y to construct a new

Re: Reading floating point

2016-10-11 Thread Brandon Allbery
On Tue, Oct 11, 2016 at 10:41 AM, Carter Schonwald < carter.schonw...@gmail.com> wrote: > Could you elaborate or point me to where this philosophy is articulated in > commentary in base or in the language standards ?

Re: Reading floating point

2016-10-11 Thread Carter Schonwald
Could you elaborate or point me to where this philosophy is articulated in commentary in base or in the language standards ? On Monday, October 10, 2016, David Feuer wrote: > It may currently be true for floats, but it's never been true in general, > particularly with