Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
f793789d
Commit
f793789d
authored
Dec 31, 2008
by
simonpj
Browse files
Use -XImpredicativeTypes instead of -fglasgow-exts
parent
151d9113
Changes
11
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/boxy/Base1.hs
View file @
f793789d
{-# OPTIONS_GHC -
fglasgow-ext
s #-}
{-# OPTIONS_GHC -
XImpredicativeType
s #-}
module
Base1
where
-- basic examples of impredicative instantiation of variables
...
...
testsuite/tests/ghc-regress/boxy/Compose.hs
View file @
f793789d
{-# OPTIONS_GHC -
fglasgow-ext
s #-}
{-# OPTIONS_GHC -
XImpredicativeTypes -XEmptyDataDecls -XGADT
s #-}
-- Trac #1118
...
...
testsuite/tests/ghc-regress/boxy/PList1.hs
View file @
f793789d
{-# OPTIONS_GHC -
fglasgow-ext
s #-}
{-# OPTIONS_GHC -
XImpredicativeType
s #-}
module
PList1
where
-- Polymorphic lists 1: requires smart-app-res
...
...
testsuite/tests/ghc-regress/boxy/PList2.hs
View file @
f793789d
{-# OPTIONS_GHC -
fglasgow-ext
s #-}
{-# OPTIONS_GHC -
XImpredicativeType
s #-}
module
PList2
where
-- Polymorphic lists 2: require smart-app-arg & smart-app-res: Should fail w/o smart-app-arg
...
...
testsuite/tests/ghc-regress/boxy/boxy.hs
View file @
f793789d
{-# OPTIONS_GHC -
fglasgow-ext
s #-}
{-# OPTIONS_GHC -
XImpredicativeTypes -XScopedTypeVariable
s #-}
module
ShouldCompile
where
...
...
testsuite/tests/ghc-regress/ghci.debugger/scripts/print033.script
View file @
f793789d
-- Resolving an impredicative type
:set -
fglasgow-ext
s
:set -
XImpredicativeType
s
:m + Control.Monad.ST
let u = undefined :: ST s (forall s'. ST s' a)
:p u
testsuite/tests/ghc-regress/simplCore/should_compile/simpl017.hs
View file @
f793789d
{-# OPTIONS
_GHC -fglasgow-ext
s #-}
{-# OPTIONS
-XImpredicativeTypes -XEmptyDataDecls -XGADTs -XLiberalTypeSynonyms -XFlexibleInstance
s #-}
-- See Trac #1627. The point is that we should get nice
-- compact code for Foo
...
...
testsuite/tests/ghc-regress/typecheck/should_compile/tc211.hs
View file @
f793789d
{-# OPTIONS
-fglasgow-ext
s #-}
{-# OPTIONS
_GHC -XImpredicativeTypes -XScopedTypeVariables -XGADT
s #-}
-- Here are a bunch of tests for impredicative polymorphism
-- mainly written by Dimitrios
...
...
testsuite/tests/ghc-regress/typecheck/should_compile/tc214.hs
View file @
f793789d
{-# OPTIONS_GHC -
fglasgow-ext
s #-}
{-# OPTIONS_GHC -
XImpredicativeTypes -XGADT
s #-}
-- This program sent GHC 6.6 into a loop, because the fixpointing
-- of the substitution in type refinement got its in-scope-set
...
...
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail165.hs
View file @
f793789d
{-# OPTIONS -
fglasgow-ext
s #-}
{-# OPTIONS -
XImpredicativeType
s #-}
module
ShouldFail
where
...
...
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail174.hs
View file @
f793789d
{-# OPTIONS -
fglasgow-ext
s #-}
{-# OPTIONS -
XImpredicativeType
s #-}
module
Foo
where
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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