Re: [commit: ghc] master: add note about compilation safety to safe haskell docs (b78b6b3)

2012-11-13 Thread Simon Marlow
, David Terei wrote: + Safe Haskell, however, does not offer compilation + safety. Is this a bug? A few lines lower down the docs say that "Compiling and executing untrusted code" is one of the two use cases for Safe Haskell. What matters is, does this problem make Safe Haskell unusable.

Re: [commit: ghc] master: add note about compilation safety to safe haskell docs (b78b6b3)

2012-11-12 Thread Ian Lynagh
:20PM -0800, David Terei wrote: > >>>> > >>>>+ Safe Haskell, however, does not offer compilation > >>>>+ safety. > >>> > >>>Is this a bug? A few lines lower down the docs say that "Compiling and > >>>executing untrusted code&q

Re: [commit: ghc] master: add note about compilation safety to safe haskell docs (b78b6b3)

2012-11-12 Thread Simon Marlow
On 10/11/2012 02:47, Ian Lynagh wrote: On Fri, Nov 09, 2012 at 05:46:05PM -0800, David Terei wrote: On 9 November 2012 17:36, Ian Lynagh wrote: On Fri, Nov 09, 2012 at 04:34:20PM -0800, David Terei wrote: + Safe Haskell, however, does not offer compilation + safety. Is this a bug? A few

Re: [commit: ghc] master: add note about compilation safety to safe haskell docs (b78b6b3)

2012-11-09 Thread Ian Lynagh
On Fri, Nov 09, 2012 at 05:46:05PM -0800, David Terei wrote: > On 9 November 2012 17:36, Ian Lynagh wrote: > > On Fri, Nov 09, 2012 at 04:34:20PM -0800, David Terei wrote: > >> > >> + Safe Haskell, however, does not offer compilation > >> + safety. > >

Re: [commit: ghc] master: add note about compilation safety to safe haskell docs (b78b6b3)

2012-11-09 Thread David Terei
On 9 November 2012 17:36, Ian Lynagh wrote: > > Hi David, > > On Fri, Nov 09, 2012 at 04:34:20PM -0800, David Terei wrote: >> >> + Safe Haskell, however, does not offer compilation >> + safety. > > Is this a bug? A few lines lower down the docs say that "

Re: [commit: ghc] master: add note about compilation safety to safe haskell docs (b78b6b3)

2012-11-09 Thread Ian Lynagh
Hi David, On Fri, Nov 09, 2012 at 04:34:20PM -0800, David Terei wrote: > > + Safe Haskell, however, does not offer compilation > + safety. Is this a bug? A few lines lower down the docs say that "Compiling and executing untrusted code" is one of the two use cases for Saf

[commit: ghc] master: add note about compilation safety to safe haskell docs (b78b6b3)

2012-11-09 Thread David Terei
rei Date: Fri Nov 9 16:33:36 2012 -0800 add note about compilation safety to safe haskell docs >--- docs/users_guide/safe_haskell.xml | 52 + 1 files changed, 52 insertions(+), 0 deletions(-)

[commit: testsuite] ghc-7.6: Add more safe haskell test coverage. (de314e2)

2012-09-01 Thread Paolo Capriotti
vid Terei Date: Wed Aug 22 23:16:24 2012 -0700 Add more safe haskell test coverage. MERGED from commit 5a9f24dab26fab33c7d469e6d703de40a3daa359 tests/safeHaskell/check/Check09.hs |1 + tests/safeHaskell/check/Check10.hs |1 + tests/safeHask

[commit: ghc] ghc-7.6: Improve Safe Haskell warn/error output. (46e88e6)

2012-09-01 Thread Paolo Capriotti
rei Date: Thu Aug 23 00:29:02 2012 -0700 Improve Safe Haskell warn/error output. MERGED from commit 2b5b178f4880b8034ef8c187e6227cfc09edf0d5 >--- compiler/main/HscMain.hs | 16 +--- ghc/Interactiv

[commit: ghc] master: Improve Safe Haskell warn/error output. (2b5b178)

2012-08-23 Thread David Terei
rei Date: Thu Aug 23 00:29:02 2012 -0700 Improve Safe Haskell warn/error output. >--- compiler/main/HscMain.hs | 16 +--- ghc/InteractiveUI.hs |6 +- 2 files changed, 10 insertions(+), 12 deletions(-)

[commit: testsuite] master: Add more safe haskell test coverage. (5a9f24d)

2012-08-23 Thread David Terei
vid Terei Date: Wed Aug 22 23:16:24 2012 -0700 Add more safe haskell test coverage. tests/safeHaskell/check/Check09.hs |1 + tests/safeHaskell/check/Check10.hs |1 + tests/safeHaskell/check/pkg01/ImpSafeOnly05.hs |8 tests/safeHask

[commit: testsuite] master: Update Safe Haskell tests for changed format. (f4121f3)

2012-04-10 Thread David Terei
vid Terei Date: Tue Apr 10 10:46:56 2012 -0700 Update Safe Haskell tests for changed format. >--- tests/safeHaskell/check/Check09.stderr |3 ++- tests/safeHaskell/ghci/p11.stderr |3 ++-

[commit: haddock] ghc-7.4: Fix reporting of modules safe haskell mode (#5989) (e4eceae)

2012-04-06 Thread Paolo Capriotti
vid Terei Date: Tue Apr 3 17:58:02 2012 -0700 Fix reporting of modules safe haskell mode (#5989) >--- src/Haddock/Interface/Create.hs |3 ++- src/Haddock/Interface/LexParseRn.hs |8 2 files changed, 6 inse

[commit: testsuite] ghc-7.4: Update safe haskell tests for change output formatting (f139794)

2012-04-06 Thread Paolo Capriotti
vid Terei Date: Tue Apr 3 12:35:46 2012 -0700 Update safe haskell tests for change output formatting tests/safeHaskell/check/pkg01/ImpSafe01.stderr |3 ++- tests/safeHaskell/check/pkg01/ImpSafeOnly03.stderr |3 ++- tests/safeHaskell/flags/SafeFlags17.stderr |3 ++- te

[commit: ghc] ghc-7.4: Fix GHC API with respect to safe haskell. (#5989) (da320fc)

2012-04-06 Thread Paolo Capriotti
rei Date: Mon Apr 2 19:00:51 2012 -0700 Fix GHC API with respect to safe haskell. (#5989) This fixes haddock so it correctly reports the safe haskell mode of a module. compiler/deSugar/Desugar.lhs |3 + compiler/iface/MkIface.lhs| 42 +++--- compiler/m

[commit: ghc] ghc-7.4: Update safe haskell error/warn formatting (95dc4ec)

2012-04-06 Thread Paolo Capriotti
rei Date: Tue Apr 3 12:37:30 2012 -0700 Update safe haskell error/warn formatting >--- compiler/main/HscMain.hs | 29 + 1 files changed, 13 insertions(+), 16 deletions(-) diff --git a/compile

[commit: testsuite] master: Update safe haskell tests for change output formatting (44b4cb0)

2012-04-04 Thread David Terei
vid Terei Date: Tue Apr 3 12:35:46 2012 -0700 Update safe haskell tests for change output formatting tests/safeHaskell/check/pkg01/ImpSafe01.stderr |3 ++- tests/safeHaskell/check/pkg01/ImpSafeOnly03.stderr |3 ++- tests/safeHaskell/flags/SafeFlags17.stderr |3 ++- te

[commit: haddock] master: Fix reporting of modules safe haskell mode (#5989) (853397a)

2012-04-04 Thread David Terei
vid Terei Date: Tue Apr 3 17:58:02 2012 -0700 Fix reporting of modules safe haskell mode (#5989) >--- src/Haddock/Interface/Create.hs |3 ++- src/Haddock/Interface/LexParseRn.hs |8 2 files changed, 6 inse

[commit: ghc] master: Fix GHC API with respect to safe haskell. (#5989) (5a0b827)

2012-04-04 Thread David Terei
rei Date: Mon Apr 2 19:00:51 2012 -0700 Fix GHC API with respect to safe haskell. (#5989) This fixes haddock so it correctly reports the safe haskell mode of a module. compiler/deSugar/Desugar.lhs |3 + compiler/iface/MkIface.lhs| 43 +++ compiler/m

[commit: ghc] master: Update safe haskell error/warn formatting (7ed6759)

2012-04-04 Thread David Terei
rei Date: Tue Apr 3 12:37:30 2012 -0700 Update safe haskell error/warn formatting >--- compiler/main/HscMain.hs | 26 +++--- 1 files changed, 11 insertions(+), 15 deletions(-) diff --git a/compile

[commit: ghc] master: Fix uneeded test in safe haskell code (2bf6083)

2012-04-04 Thread David Terei
rei Date: Mon Apr 2 15:07:26 2012 -0700 Fix uneeded test in safe haskell code >--- compiler/main/DynFlags.hs |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/compiler/main/DynFlags.hs b/compile

[commit: testsuite] master: Fix up safe haskell test outputs (58a5b8b)

2012-02-14 Thread David Terei
vid Terei Date: Tue Feb 14 12:25:05 2012 -0800 Fix up safe haskell test outputs >--- tests/safeHaskell/ghci/D.hs |2 +- tests/safeHaskell/ghci/all.T |1 + tests/safeHaskell/gh

[commit: testsuite] master: Add some safe haskell test for '-trust' flag. (9cecb04)

2012-02-10 Thread David Terei
vid Terei Date: Thu Feb 9 14:56:21 2012 -0800 Add some safe haskell test for '-trust' flag. >--- .../flags/{SafeFlags27.hs => SafeFlags28.hs} |4 ++-- tests/safeHaskell/flags/SafeFlags28.st

[commit: ghc] master: Remove old dead safe haskell setting (d4c9063)

2012-01-25 Thread David Terei
rei Date: Wed Jan 25 14:45:13 2012 -0800 Remove old dead safe haskell setting >--- mk/validate-settings.mk |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/mk/validate-settings.mk b/mk/validate-setti

[commit: ghc] ghc-7.4: Fix :issafe safe haskell ghci command (fbb371a)

2012-01-07 Thread Ian Lynagh
rei Date: Wed Dec 21 15:23:36 2011 -0800 Fix :issafe safe haskell ghci command >--- ghc/InteractiveUI.hs | 32 1 files changed, 24 insertions(+), 8 deletions(-) diff --git a/ghc/InteractiveU

[commit: testsuite] ghc-7.4: Update Safe Haskell tests (759a5ce)

2012-01-06 Thread Ian Lynagh
vid Terei Date: Tue Dec 20 00:57:03 2011 -0800 Update Safe Haskell tests >--- tests/safeHaskell/check/Check01.hs |2 +- tests/safeHaskell/check/Check05.hs |7 +++ tests/safeHaskell/check/Check05.

[commit: ghc] ghc-7.4: Ignore -fpackage-trust if no other Safe Haskell flags (508b027)

2012-01-06 Thread Ian Lynagh
rei Date: Mon Dec 19 18:37:47 2011 -0800 Ignore -fpackage-trust if no other Safe Haskell flags >--- compiler/main/DynFlags.hs | 35 ++- 1 files changed, 26 insertions(+), 9 deletions(-) diff -

[commit: ghc] ghc-7.4: Refactor Safe Haskell check to provide hscCheckSafe GHC API (df44843)

2012-01-06 Thread Ian Lynagh
rei Date: Fri Dec 16 13:45:53 2011 -0800 Refactor Safe Haskell check to provide hscCheckSafe GHC API >--- compiler/main/HscMain.hs | 128 +- 1 files changed, 70 insertions(+), 58 del

[commit: testsuite] master: More Safe Haskell tests (4341b73)

2011-12-22 Thread David Terei
vid Terei Date: Tue Dec 20 15:53:57 2011 -0800 More Safe Haskell tests >--- tests/safeHaskell/check/Check06.hs | 13 + tests/safeHaskell/check/Check06.stderr |5 + tests/safeHaskell

[commit: ghc] master: Fix :issafe safe haskell ghci command (541781f)

2011-12-22 Thread David Terei
rei Date: Wed Dec 21 15:23:36 2011 -0800 Fix :issafe safe haskell ghci command >--- ghc/InteractiveUI.hs | 32 1 files changed, 24 insertions(+), 8 deletions(-) diff --git a/ghc/InteractiveU

Re: [commit: ghc] master: Ignore -fpackage-trust if no other Safe Haskell flags (82e19ff)

2011-12-21 Thread David Terei
Hi Ian, Could you pull these two patches into 7.4 branch please: commit 82e19ffc86a77b4b6eb4ea35636c7737b7e68202 Author: David Terei Date:   Mon Dec 19 18:37:47 2011 -0800    Ignore -fpackage-trust if no other Safe Haskell flags commit 4ff7d0bb9d3e627843e601e6a0a623a6b03783a2 Author: David

[commit: testsuite] master: Update Safe Haskell tests (a3e1187)

2011-12-20 Thread David Terei
vid Terei Date: Tue Dec 20 00:57:03 2011 -0800 Update Safe Haskell tests >--- tests/safeHaskell/check/Check01.hs |2 +- tests/safeHaskell/check/Check05.hs |7 +++ tests/safeHaskell/check/Check05.

[commit: ghc] master: Refactor Safe Haskell check to provide hscCheckSafe GHC API (4ff7d0bb)

2011-12-20 Thread David Terei
rei Date: Fri Dec 16 13:45:53 2011 -0800 Refactor Safe Haskell check to provide hscCheckSafe GHC API >--- compiler/main/HscMain.hs | 128 +- 1 files changed, 70 insertions(+), 58 del

[commit: ghc] master: Ignore -fpackage-trust if no other Safe Haskell flags (82e19ff)

2011-12-20 Thread David Terei
rei Date: Mon Dec 19 18:37:47 2011 -0800 Ignore -fpackage-trust if no other Safe Haskell flags >--- compiler/main/DynFlags.hs | 35 ++- 1 files changed, 26 insertions(+), 9 deletions(-) diff -

[commit: ghc] ghc-7.4's head updated: Tweaks to safe haskell documentation. (602545a)

2011-11-22 Thread Ian Lynagh
#x27; flag specified. d6c2ffd... Improve documentation on backends 0c9427c... Add doc for -msse4.2 flag. 8e6990a... vectoriser: fix pvoids problem when vectorising enumerations b4036c3... Update Safe Haskell documentation for new design in 7.4 34053bb... Merge /Users/benl/deve

[commit: ghc] master: Tweaks to safe haskell documentation. (602545a)

2011-11-22 Thread David Terei
rei Date: Tue Nov 22 09:59:47 2011 -0800 Tweaks to safe haskell documentation. docs/users_guide/safe_haskell.xml | 169 +++-- 1 files changed, 105 insertions(+), 64 deletions(-) Diff suppressed because of size. To see it, use: git s

[commit: ghc] master: Update Safe Haskell documentation for new design in 7.4 (b4036c3)

2011-11-21 Thread David Terei
rei Date: Mon Nov 21 23:26:44 2011 -0800 Update Safe Haskell documentation for new design in 7.4 docs/users_guide/flags.xml| 26 +++- docs/users_guide/glasgow_exts.xml | 15 +- docs/users_guide/packages.xml |3 +- docs/users_guide/safe_haskell.xml |

[commit: ghc] master: Add Safe Haskell '-fwarn-safe', '-fwarn-unsafe', '-fno-safe-infer' flags (14bbdda)

2011-11-16 Thread David Terei
rei Date: Wed Nov 16 13:22:27 2011 -0800 Add Safe Haskell '-fwarn-safe', '-fwarn-unsafe', '-fno-safe-infer' flags compiler/iface/MkIface.lhs |2 +- compiler/main/DynFlags.hs | 31 +++ compiler/main/ErrUtils.lhs | 40

[commit: testsuite] master: Add Safe Haskell tests for new '-fwarn-safe', '-fwarn-unsafe' (7d56ae3)

2011-11-16 Thread David Terei
vid Terei Date: Wed Nov 16 13:24:29 2011 -0800 Add Safe Haskell tests for new '-fwarn-safe', '-fwarn-unsafe' and '-fno-safe-infer' flags. tests/safeHaskell/flags/SafeFlags21.hs |9 + tests/safeHaskell/flags/SafeFlags22.hs | 1

[commit: ghc] master: Add a comment for safe haskell (a238104)

2011-11-09 Thread David Terei
rei Date: Wed Nov 9 11:19:16 2011 -0800 Add a comment for safe haskell >--- compiler/iface/MkIface.lhs |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/compiler/iface/MkIface.lhs b/compiler/iface/MkIfa

[commit: testsuite] master: Update Safe Haskell test to include recomp checks (f3aa71e)

2011-11-09 Thread David Terei
vid Terei Date: Tue Nov 8 20:28:12 2011 -0800 Update Safe Haskell test to include recomp checks >--- tests/safeHaskell/NOTES|4 - tests/safeHaskell/safeLanguage/Makefile

[commit: ghc] master: Throw error if safe imports used when safe haskell isn't on (c4874d4)

2011-11-08 Thread David Terei
rei Date: Tue Nov 8 17:15:27 2011 -0800 Throw error if safe imports used when safe haskell isn't on >--- compiler/rename/RnNames.lhs |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/comp

[commit: ghc] master: Fix up Safe Haskell handling of FFI imports (0a5d084)

2011-11-07 Thread David Terei
rei Date: Mon Nov 7 14:28:02 2011 -0800 Fix up Safe Haskell handling of FFI imports >--- compiler/typecheck/TcForeign.lhs | 81 +- 1 files changed, 45 insertions(+), 36 deletions(-) diff -

[commit: ghc] master: Correctly handle safe inference in Safe Haskell. (baab7c1)

2011-11-04 Thread David Terei
rei Date: Tue Nov 1 22:54:38 2011 -0700 Correctly handle safe inference in Safe Haskell. >--- compiler/iface/MkIface.lhs |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/compiler/iface/MkIface

Re: Safe Haskell haddock segfault

2011-11-03 Thread Ian Lynagh
On Thu, Nov 03, 2011 at 07:34:44AM +, Simon Peyton-Jones wrote: > > Ian knows the build system. I think the build system is a red herring in this case - it just so happens that build system problems can cause the same symptoms. At least, when I looked into it last time, I got the error with a

RE: Safe Haskell haddock segfault

2011-11-03 Thread Simon Peyton-Jones
varty [mailto:c...@cse.unsw.edu.au] | Sent: 02 November 2011 23:11 | To: Simon Peyton-Jones | Cc: Ben Lippmeier; Ian Lynagh; Simon Marlow | Subject: Re: Safe Haskell haddock segfault | | I had this error as well, but could resolve it by fixing a bit-rotted rule in | rules/haddock.mk: | |

[commit: ghc] master: More updates to Safe Haskell to implement new design (done!). (9241aa0)

2011-11-01 Thread David Terei
rei Date: Tue Oct 25 11:07:09 2011 -0700 More updates to Safe Haskell to implement new design (done!). Conflicts: compiler/main/DynFlags.hs compiler/main/HscMain.lhs compiler/main/DynFlags.hs | 80 +--- compiler/main/HscMain.lhs |

[commit: ghc] master: safe haskell wip (7940781)

2011-11-01 Thread David Terei
rei Date: Mon Oct 31 14:27:25 2011 -0700 safe haskell wip >--- compiler/main/DynFlags.hs |6 --- compiler/main/HscMain.lhs | 76 ++- compiler/main/HscTypes.lhs | 16 +- 3

Re: [commit: base] master: Update base for new Safe Haskell design (447448a)

2011-10-31 Thread Simon Marlow
rts System.IO.Unsafe. In turn System.IO.Unsafe can be infered to be unsafe because it imports GHC.IO. The chain continues via GHC.Base --> GHC.Types (which defines the IO datatype) --> GHC.Prim which defines State#, RealWorld etc. We've never built into the Safe Haskell implement

Re: Safe Haskell default

2011-10-28 Thread David Terei
On 26 October 2011 09:04, Thomas Schilling wrote: > I while ago I saw a commit to Safe Haskell changing modules from > default Unsafe to default Safe. > > This seems wrong to me (and Duncan agreed on IRC) -- in security the > usual advice is to use white listing instead of blac

Re: [commit: base] master: Update base for new Safe Haskell design (447448a)

2011-10-28 Thread Duncan Coutts
ually more towards safe. The inference > > tracks if a module imports any unsafe modules and if so marks it as > > unsafe. Which Debug.Trace does, it imports System.IO.Unsafe. In turn System.IO.Unsafe can be infered to be unsafe because it imports GHC.IO. The chain continues via GHC.Ba

Re: [commit: base] master: Update base for new Safe Haskell design (447448a)

2011-10-27 Thread Simon Marlow
s hard to define but if anything the default is actually more towards safe. The inference tracks if a module imports any unsafe modules and if so marks it as unsafe. We've never built into the Safe Haskell implementation any specific knowledge of things like unsafePerformIO and GHC.* primitives

Re: [commit: base] master: Update base for new Safe Haskell design (447448a)

2011-10-26 Thread David Terei
s hard to define but if anything the default is actually more towards safe. The inference tracks if a module imports any unsafe modules and if so marks it as unsafe. We've never built into the Safe Haskell implementation any specific knowledge of things like unsafePerformIO and GHC.* primiti

Re: Safe Haskell default

2011-10-26 Thread Daniel Fischer
On Wednesday 26 October 2011, 20:54:46, Johan Tibell wrote: > Right, but that's not how it used to work. Oh. > As soon as any module (e.g. in base) had a Trustworthy pragma you > needed to ghc-pkg trust base to use base, regardless if you wanted > to use Safe Haskell or not.

Re: Safe Haskell default

2011-10-26 Thread Johan Tibell
On Wed, Oct 26, 2011 at 11:04 AM, Daniel Fischer < daniel.is.fisc...@googlemail.com> wrote: > I don't understand this. If I don't use Safe Haskell, the compiler should > ignore all the Safe/Trustworthy/Unsafe pragmas no matter what's the > default. > Only i

[commit: ghc] master: Revert "More updates to Safe Haskell to implement new design (done!)." (0f51b3e)

2011-10-26 Thread Ian Lynagh
agh Date: Wed Oct 26 17:37:35 2011 +0100 Revert "More updates to Safe Haskell to implement new design (done!)." This reverts commit bb0eb57e329bcdd781e24b0d86993a0df25beed8. compiler/main/DynFlags.hs | 84 +++- compiler/main/HscMain.lhs

Re: Safe Haskell default

2011-10-26 Thread Daniel Fischer
On Wednesday 26 October 2011, 19:50:09, Johan Tibell wrote: > On Wed, Oct 26, 2011 at 9:04 AM, Thomas Schilling > > wrote: > > I while ago I saw a commit to Safe Haskell changing modules from > > default Unsafe to default Safe. > > > > This seems wrong to me

Re: Safe Haskell default

2011-10-26 Thread Johan Tibell
On Wed, Oct 26, 2011 at 9:04 AM, Thomas Schilling wrote: > I while ago I saw a commit to Safe Haskell changing modules from > default Unsafe to default Safe. > > This seems wrong to me (and Duncan agreed on IRC) -- in security the > usual advice is to use white listing instead o

Safe Haskell default

2011-10-26 Thread Thomas Schilling
I while ago I saw a commit to Safe Haskell changing modules from default Unsafe to default Safe. This seems wrong to me (and Duncan agreed on IRC) -- in security the usual advice is to use white listing instead of black listing. The reasoning is that if you forget to white list something safe

Re: [commit: base] master: Update base for new Safe Haskell design (447448a)

2011-10-26 Thread Duncan Coutts
41d5297aedcbb2dddf > Author: David Terei > Date: Tue Oct 25 11:13:08 2011 -0700 > > Update base for new Safe Haskell design > Debug/Trace.hs |1 + diff --git a/Debug/Trace.hs b/Debug/Trace.hs index ebacb6c..728b938 100644 --- a/Debug/Trace.hs

[commit: testsuite] master: More updates to Safe Haskell tests (da0a8de)

2011-10-25 Thread David Terei
vid Terei Date: Tue Oct 25 14:24:39 2011 -0700 More updates to Safe Haskell tests >--- tests/cabal/ghcpkg01.stdout| 12 ++-- tests/safeHaskell/safeInfered/SafeInfered04.hs |8

[commit: testsuite] master: More fixes to Safe Haskell test for design changes (039d367)

2011-10-25 Thread David Terei
vid Terei Date: Thu Oct 20 21:33:14 2011 -0700 More fixes to Safe Haskell test for design changes tests/safeHaskell/NOTES|4 tests/safeHaskell/check/Check03.hs |1 + tests/safeHaskell/flags/all.T |2 +- te

[commit: testsuite] master: Modify and add a bunch of new tests for Safe Haskell changes (4866871)

2011-10-25 Thread David Terei
vid Terei Date: Wed Oct 19 12:15:17 2011 -0700 Modify and add a bunch of new tests for Safe Haskell changes tests/safeHaskell/check/Check01.hs |3 +- tests/safeHaskell/check/Check02.hs |2 +- tests/safeHaskell/check/Check04.hs |

[commit: testsuite] master: Add more Safe Haskell tests for new design (365fbb0)

2011-10-25 Thread David Terei
vid Terei Date: Wed Oct 19 20:02:06 2011 -0700 Add more Safe Haskell tests for new design driver/testlib.py |6 +++--- tests/safeHaskell/flags/SafeFlags03.hs |2 +- tests/safeHaskell/flags/SafeFlags03.stderr |2 +- te

[commit: ghc] master: Setup new Safe Haskell interface (18d2dab)

2011-10-25 Thread David Terei
rei Date: Wed Oct 19 20:01:40 2011 -0700 Setup new Safe Haskell interface >--- compiler/main/DynFlags.hs | 32 compiler/main/HscMain.lhs |2 +- compiler/main/HscTypes.lhs

[commit: ghc] master: More updates to Safe Haskell to implement new design (done!). (bb0eb57)

2011-10-25 Thread David Terei
rei Date: Tue Oct 25 11:07:09 2011 -0700 More updates to Safe Haskell to implement new design (done!). compiler/main/DynFlags.hs | 84 +--- compiler/main/HscMain.lhs | 415 - compiler/main/HscTypes.lhs| 22 +- compi

[commit: ghc] master: Add -fpackage-trust flag to Safe Haskell. (2615b58)

2011-10-17 Thread David Terei
rei Date: Mon Oct 17 20:38:37 2011 -0700 Add -fpackage-trust flag to Safe Haskell. >--- compiler/main/DynFlags.hs | 11 +++ compiler/main/HscMain.lhs |6 -- 2 files changed, 15 insertions(+), 2 deletions(-)

[commit: testsuite] master: Change Safe Haskell tests for new -fpackage-trust flag (b34d300)

2011-10-17 Thread David Terei
vid Terei Date: Mon Oct 17 20:35:28 2011 -0700 Change Safe Haskell tests for new -fpackage-trust flag >--- tests/safeHaskell/check/all.T |3 +++ .../check/pkg01/{ImpSafe01.hs => ImpSafe02.hs}

[commit: testsuite] master: update tests for safe haskell changes (47f0d9a)

2011-10-17 Thread David Terei
vid Terei Date: Mon Oct 17 14:14:02 2011 -0700 update tests for safe haskell changes >--- tests/driver/T4437.hs |2 +- tests/safeHaskell/safeLanguage/SafeLang01.stderr |2 +- tests/safeH

[commit: ghc] master: Remove cruft code from old Safe Haskell implementation method (189f666)

2011-10-17 Thread David Terei
rei Date: Thu Oct 6 18:33:01 2011 -0700 Remove cruft code from old Safe Haskell implementation method compiler/main/CmdLineParser.hs| 117 ++--- compiler/main/DynFlags.hs | 956 ++--- compiler/main/StaticFlagParser.hs | 78 ++-- compiler/typech

[commit: ghc] master: Fix safe haskell warnings to include src locations (6f43ec8)

2011-10-17 Thread David Terei
rei Date: Mon Oct 17 13:49:48 2011 -0700 Fix safe haskell warnings to include src locations >--- compiler/main/CmdLineParser.hs |5 - compiler/main/DynFlags.hs | 31 ++- 2 files chang

[commit: haddock] master: Add safe haskell indication to haddock output (45bcf70)

2011-10-12 Thread David Terei
vid Terei Date: Thu Aug 18 14:27:53 2011 -0700 Add safe haskell indication to haddock output >--- src/Haddock/Backends/Xhtml.hs |3 ++- src/Haddock/Interface/LexParseRn.hs| 27 --

[commit: haddock] development: Add safe haskell indication to haddock output (0c16f3b)

2011-10-12 Thread David Terei
vid Terei Date: Thu Aug 18 14:27:53 2011 -0700 Add safe haskell indication to haddock output >--- src/Haddock/Backends/Xhtml.hs |3 ++- src/Haddock/Interface/LexParseRn.hs

[commit: testsuite] ghc-kinds: fix template haskell error message with safe haskell (c3ed085)

2011-09-12 Thread Julien Cretin
hor: Julien Cretin Date: Fri Sep 9 13:01:24 2011 +0200 fix template haskell error message with safe haskell >--- tests/safeHaskell/safeLanguage/SafeLang12.stderr |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff -

Re: Safe haskell issues building HEAD using 7.2.1

2011-09-08 Thread David Terei
Modules are not considered safe by default, so System.IO.Unsafe is not considered safe by the absence of a marking. On 7 September 2011 22:20, Daniel Peebles wrote: > Does trusting all of base mean we trust System.IO.Unsafe? Or is there an > explicit "DO NOT TRUST THIS MODULE" attached to it some

Re: Safe haskell issues building HEAD using 7.2.1

2011-09-07 Thread Daniel Peebles
Does trusting all of base mean we trust System.IO.Unsafe? Or is there an explicit "DO NOT TRUST THIS MODULE" attached to it somehow? On Wed, Sep 7, 2011 at 6:13 PM, David Terei wrote: > On 6 September 2011 20:33, Corey O'Connor wrote: > > I'm running into a lot of issues like the following: > >

Re: Safe haskell issues building HEAD using 7.2.1

2011-09-07 Thread David Terei
On 6 September 2011 20:33, Corey O'Connor wrote: > I'm running into a lot of issues like the following: > > libraries/hoopl/src/Compiler/Hoopl/Collections.hs:14:1: >    base:Data.List can't be safely imported! The package (base) the > module resides in isn't trusted. > > Which can be resolved by a

Safe haskell issues building HEAD using 7.2.1

2011-09-06 Thread Corey O'Connor
I'm running into a lot of issues like the following: libraries/hoopl/src/Compiler/Hoopl/Collections.hs:14:1: base:Data.List can't be safely imported! The package (base) the module resides in isn't trusted. Which can be resolved by adding "-trust base" to the build options. Is this necessary?

Re: Safe Haskell validate failure

2011-08-11 Thread Daniel Fischer
didn't make it into 7.2.1. So you need to do this for > your bootstrapping 7.2.1 compiler: > > $ ghc-pkg trust base Yeah, figured that after reading about how safe haskell is supposed to work. > > After that it should work fine. I'll look into updating the GHC build &

Re: Safe Haskell validate failure

2011-08-11 Thread David Terei
Hmmm thats annoying. So the issue is that you need to have the base package trusted. Originally packages were untrusted by default. I changed that so that packages are now trusted by default. However that change to Cabal didn't make it into 7.2.1. So you need to do this for your bootstrapping 7.2.1

Safe Haskell validate failure

2011-08-11 Thread Daniel Fischer
On a freshly pulled repo, I get > Creating compiler/stage1/build/Config.hs ... > done. > [ 1 of 66] Compiling Distribution.Compat.Exception ( > libraries/Cabal/cabal/Distribution/Compat/Exception.hs, > bootstrapping/Distribution/Compat/Exception.o ) [ 2 of 66] Compiling > Distribution.GetOpt ( lib

[commit: testsuite] master: Update ghcpkg01 for changes to safe haskell (23965ee)

2011-08-10 Thread David Terei
vid Terei Date: Wed Aug 10 11:43:37 2011 -0700 Update ghcpkg01 for changes to safe haskell >--- tests/cabal/ghcpkg01.stdout | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/cabal/ghcpkg01.

Re: Safe Haskell validate failure

2011-08-09 Thread David Terei
On 9 August 2011 14:32, Ian Lynagh wrote: > On Tue, Aug 09, 2011 at 09:16:44PM +, Simon Peyton-Jones wrote: >> |  > Or is the patch only in the upstream Cabal? In which case, it should be >> pulled >> |  into the GHC repos before committing, no?  Else validate fails. >> | >> |  No I learnt fr

Re: Safe Haskell validate failure

2011-08-09 Thread Ian Lynagh
On Tue, Aug 09, 2011 at 09:16:44PM +, Simon Peyton-Jones wrote: > | > Or is the patch only in the upstream Cabal? In which case, it should be > pulled > | into the GHC repos before committing, no?  Else validate fails. > | > | No I learnt from my mistake last time (I hope so anyway!) and

RE: Safe Haskell validate failure

2011-08-09 Thread Simon Peyton-Jones
| > Or is the patch only in the upstream Cabal? In which case, it should be pulled | into the GHC repos before committing, no?  Else validate fails. | | No I learnt from my mistake last time (I hope so anyway!) and manually | sync'd our lagging Cabal with upstream after pushing the patch. A

[commit: testsuite] master: Fix up Safe Haskell tests for recent ghc changes. (fcdb020)

2011-08-09 Thread David Terei
vid Terei Date: Tue Aug 9 13:20:39 2011 -0700 Fix up Safe Haskell tests for recent ghc changes. >--- tests/safeHaskell/check/all.T |2 +- tests/safeHaskell/check/pkg01/Makefile |5 -

Re: Safe Haskell validate failure

2011-08-09 Thread David Terei
know if not. > > Simon > > |  -Original Message- > |  From: davidte...@gmail.com [mailto:davidte...@gmail.com] On Behalf Of David > |  Terei > |  Sent: 09 August 2011 19:38 > |  To: Simon Peyton-Jones > |  Cc: cvs-ghc@haskell.org > |  Subject: Re: Safe Haskell valid

RE: Safe Haskell validate failure

2011-08-09 Thread Simon Peyton-Jones
d... maybe it'll work this time. I'll let you know if not. Simon | -Original Message- | From: davidte...@gmail.com [mailto:davidte...@gmail.com] On Behalf Of David | Terei | Sent: 09 August 2011 19:38 | To: Simon Peyton-Jones | Cc: cvs-ghc@haskell.org | Subject: Re: S

Re: Safe Haskell validate failure

2011-08-09 Thread David Terei
On 9 August 2011 00:34, Simon Peyton-Jones wrote: > I’m getting this on a clean validate on Windows > >     base:Prelude can't be safely imported! The package (base) the module > resides in isn't trusted. > > Any ideas? > You need to pull in a recent path to Cabal. Cheers, David ___

Safe Haskell validate failure

2011-08-09 Thread Simon Peyton-Jones
I'm getting this on a clean validate on Windows base:Prelude can't be safely imported! The package (base) the module resides in isn't trusted. Any ideas? Simon "inplace/bin/ghc-stage1.exe" -H32m -O -Wall -Werror -H64m -O0 -package-name old-locale-1.0.0.3 -hide-all-packages -i -ilibrar

Re: Safe Haskell

2011-08-08 Thread Simon Marlow
On 06/08/2011 02:46, David Terei wrote: Another question, the Haskell 2010 package. Some of the modules here are unsafe (e.g Foreign.ForeignPtr). My understanding is these packages are designed to strictly conform to the language specification. So should I leave Foreign.ForeignPtr alone and do n

Re: Safe Haskell

2011-08-06 Thread Ian Lynagh
On Fri, Aug 05, 2011 at 06:46:09PM -0700, David Terei wrote: > > Another question, the Haskell 2010 package. Some of the modules here > are unsafe (e.g Foreign.ForeignPtr). My understanding is these > packages are designed to strictly conform to the language > specification. So should I leave Fore

Re: Safe Haskell

2011-08-05 Thread David Terei
On 5 August 2011 01:53, Simon Marlow wrote: > On 04/08/2011 21:22, David Terei wrote: >> >> On 3 August 2011 03:08, Simon Marlow  wrote: >>> >>> Perhaps all packages should be trusted by default?  (Perhaps with some >>> Cabal >>> configuration option to reverse the behaviour).  After all, trusting

Re: Safe Haskell

2011-08-05 Thread Simon Marlow
On 04/08/2011 21:22, David Terei wrote: On 3 August 2011 03:08, Simon Marlow wrote: Perhaps all packages should be trusted by default? (Perhaps with some Cabal configuration option to reverse the behaviour). After all, trusting a package is a no-op unless the package defines some Safe or Trus

Re: Safe Haskell

2011-08-04 Thread David Terei
On 3 August 2011 03:08, Simon Marlow wrote: > Perhaps all packages should be trusted by default?  (Perhaps with some Cabal > configuration option to reverse the behaviour).  After all, trusting a > package is a no-op unless the package defines some Safe or Trustworthy > modules.  If we don't do th

Re: Safe Haskell

2011-08-03 Thread Simon Marlow
On 03/08/2011 03:23, David Terei wrote: I think we should setup GHC so that the base library is trusted by default. I'd like to use the 'Safe' pragma in some of the packages included with GHC but that relies on base being trusted. Assuming no objections could someone point out please where in the

Re: Safe Haskell

2011-08-02 Thread David Terei
I think we should setup GHC so that the base library is trusted by default. I'd like to use the 'Safe' pragma in some of the packages included with GHC but that relies on base being trusted. Assuming no objections could someone point out please where in the build process I need to change so that st

RE: Safe Haskell

2011-08-02 Thread Simon Peyton-Jones
kell.org [mailto:cvs-ghc-boun...@haskell.org] On Behalf Of | Simon Peyton-Jones | Sent: 26 July 2011 08:13 | To: David Terei; Ian Lynagh | Cc: cvs-ghc@haskell.org; David Mazieres expires 2011-10-22 PDT | Subject: RE: Safe Haskell | | [Widening to cvs-ghc because others may have opinions] | | | >

Re: Safe Haskell

2011-07-26 Thread David Terei
on holiday this week, and I have not been following the discussion > properly.  I believe the question at issue is this. > > * "LANGUAGE Foo" means that the module uses language extension Foo, and won't >  compile unless the compiler supports Foo > > * But Sa

RE: Safe Haskell

2011-07-26 Thread Simon Peyton-Jones
ot;LANGUAGE Foo" means that the module uses language extension Foo, and won't compile unless the compiler supports Foo * But Safe Haskell for the first time is a language *restriction*. You are questioning {-# LANGUAGE SafeHaskell #-} (or trustworthy or something) because it

  1   2   >