GHC extensions

2018-04-18 Thread Peter Podlovics
Hi everyone,

I have a question about handling missing extension errors in modules. What
does exactly happen if an extension is needed for a certain language
element, but it is not present? I couldn't find the code segment where
error messages are handled, and since there are no immediate program
interrupts at their creation site (e.g.: at TcValidity.checkValidType), I
can only assume that there is some tricky laziness in action here.

Does the type checker still continue its business after encountering such
an error; or does it stop, and dump its the error messages?

Thanks in advance,
Peter
___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


RE: Windows: cannot create here-doc

2018-04-18 Thread Simon Peyton Jones via ghc-devs
Tamar

I have good news.  After giving my computer a rest while I was on holiday, and 
rebooting it, everything seems to be working fine.

I have no idea what was going wrong, but it’s not going wrong any more!  I’ll 
keep you posted.

Simon


From: Phyx 
Sent: 04 April 2018 23:35
To: Simon Peyton Jones 
Cc: ghc-devs 
Subject: Re: Windows: cannot create here-doc

Hi Simon,

This one is very strange, from the error and the fact that it continues it 
looks like whatever TEMP and TMP
are pointing to are not always available or some locking issue is going on.

I would try running ProcMon 
https://docs.microsoft.com/en-us/sysinternals/downloads/procmon
 and filtering paths to
whatever TEMP and TMP are set to.

In the dialog that opens when you run it, select in the first box path, select 
the "starts with" condition then enter the Windows version of the path in the 
third one.
Make sure the final box is set to "Include" and press add. Then try again. Once 
it fails, stop capturing (File -> click on "capture events" to unselect).

This should contain the accesses to things in your TEMP and why it failed.

(If TEMP contains a unix path you can get a windows one with e.g  cygpath -w 
$TEMP)

Once we know more can figure out what's going on.

Thanks,
Tamar

On Wed, Apr 4, 2018 at 10:17 PM, Simon Peyton Jones 
mailto:simo...@microsoft.com>> wrote:
Tamar
I think your suggestion of adding

# Set user-defined locale
export LANG=$(locale -uU)
worked.  No more perl messages.
Still having various troubles…
Here’s the current one (log below).  I’m getting lots of

   ./configure: line 2534: cannot create temp file for here-document: 
Device or resource busy
And finally

checking whether the C compiler works... no

sed: can't read conftest.c: No such file or directory

configure: error: in `/c/code/HEAD':

configure: error: C compiler cannot create executables
I have environment variables TEMP and TMP set.
Oddly, re-running configure gets further – see second log below.
All deeply strange.
Thanks
Simon

Log 1: first run of ‘sh validate –fast’

Creating 
libraries/array/ghc.mk

Creating 
libraries/base/ghc.mk

Creating 
libraries/binary/ghc.mk

Creating 
libraries/bytestring/ghc.mk

Creating 
libraries/Cabal/Cabal/ghc.mk

Creating 
libraries/containers/ghc.mk

Creating 
libraries/deepseq/ghc.mk

Creating 
libraries/directory/ghc.mk

Creating 
libraries/dph/dph-base/ghc.mk