Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
ab592001
Commit
ab592001
authored
Feb 14, 2012
by
dterei
Browse files
Fix up safe haskell test outputs
parent
8a808e41
Changes
12
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/safeHaskell/ghci/D.hs
View file @
ab592001
module
D
where
module
D
(
a
)
where
a
::
Int
a
=
1
...
...
testsuite/tests/safeHaskell/ghci/all.T
View file @
ab592001
...
...
@@ -16,4 +16,5 @@ test('p13', normal, ghci_script, ['p13.script'])
test
('
p14
',
normal
,
ghci_script
,
['
p14.script
'])
test
('
p15
',
normal
,
ghci_script
,
['
p15.script
'])
test
('
p16
',
normal
,
ghci_script
,
['
p16.script
'])
test
('
p17
',
normal
,
ghci_script
,
['
p17.script
'])
testsuite/tests/safeHaskell/ghci/p10.stderr
0 → 100644
View file @
ab592001
<interactive>:10:1: Not in scope: `b'
testsuite/tests/safeHaskell/ghci/p10.stdout
View file @
ab592001
Warning: can't use * imports with Safe Haskell; ignoring *
1
2
testsuite/tests/safeHaskell/ghci/p12.stderr
0 → 100644
View file @
ab592001
<no location info>:
bytestring-0.9.2.0:Data.ByteString can't be safely imported! The package (bytestring-0.9.2.0) the module resides in isn't trusted.
testsuite/tests/safeHaskell/ghci/p12.stdout
View file @
ab592001
don't know how to reverse -XSafe
Some flags have not been recognized: -fno-package-trust
*** Exception: bytestring-0.9.2.0:Data.ByteString can't be safely imported! The package (bytestring-0.9.2.0) the module resides in isn't trusted.
testsuite/tests/safeHaskell/ghci/p13.stdout
View file @
ab592001
Warning: can't use * imports with Safe Haskell; ignoring *
testsuite/tests/safeHaskell/ghci/p17.script
0 → 100644
View file @
ab592001
-- Test bad imports
:unset +s
:set -XSafe
-- test trustworthy and package flag
import Data.ByteString
:set -fpackage-trust
import Data.ByteString
testsuite/tests/safeHaskell/ghci/p17.stderr
0 → 100644
View file @
ab592001
<no location info>:
bytestring-0.9.2.0:Data.ByteString can't be safely imported! The package (bytestring-0.9.2.0) the module resides in isn't trusted.
testsuite/tests/safeHaskell/ghci/p3.stderr
View file @
ab592001
<no location info>:
base:System.IO.Unsafe can't be safely imported! The module itself isn't safe.
<no location info>:
bytestring-0.9.2.0:Data.ByteString can't be safely imported! The package (bytestring-0.9.2.0) the module resides in isn't trusted.
testsuite/tests/safeHaskell/ghci/p3.stdout
View file @
ab592001
can't import System.IO.Unsafe as it isn't trusted.
*** Exception: bytestring-0.9.2.0:Data.ByteString can't be safely imported! The package (bytestring-0.9.2.0) the module resides in isn't trusted.
testsuite/tests/safeHaskell/ghci/p9.stdout
View file @
ab592001
Warning: can't use * imports with Safe Haskell; ignoring *
1
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment