Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gesh
GHC
Commits
b799e5ca
Commit
b799e5ca
authored
24 years ago
by
sven.panne@aedion.de
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 2000-07-03 21:04:44 by panne]
Removed foralls in expected output
parent
d2e67f30
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ghc/tests/reader/should_fail/read001.stdout
+10
-22
10 additions, 22 deletions
ghc/tests/reader/should_fail/read001.stdout
ghc/tests/reader/should_fail/read007.stdout
+1
-1
1 addition, 1 deletion
ghc/tests/reader/should_fail/read007.stdout
with
11 additions
and
23 deletions
ghc/tests/reader/should_fail/read001.stdout
+
10
−
22
View file @
b799e5ca
...
...
@@ -9,12 +9,8 @@ import Prelude
import IO (putStr)
import System hiding (getArgs)
import Monad
bindwith ::
{- implicit forall -} (OrdClass a, OrdClass b) => a -> b -> b
g ::
{- implicit forall -}
(Num a, Eq b) =>
Foo a -> [b] -> (a, a, a) -> b
bindwith :: (OrdClass a, OrdClass b) => a -> b -> b
g :: (Num a, Eq b) => Foo a -> [b] -> (a, a, a) -> b
g x y z = head y
f _
x
...
...
@@ -44,8 +40,7 @@ expr a b c d
+ ([z | z <- c, isSpace z]))
+ (let y = foo
in
(((((((y + [1, 2, 3, 4]) + (4, 3, 2, 1))
+ (4 :: {- implicit forall -} (Num a) => a))
(((((((y + [1, 2, 3, 4]) + (4, 3, 2, 1)) + (4 :: (Num a) => a))
+ (if 42 == 42.0 then 1 else 4))
+ ([1 .. ]))
+ ([2, 4 .. ]))
...
...
@@ -73,21 +68,14 @@ fixn x y = x
infix 6 fixn
infixl 7 +#
infixr 8 fixr
type Pair a b = {- implicit forall -} (a, b)
data FooData = forall. FooCon Int
data FooDataB = forall. FooConB Double
data (Eq a) => EqTree a =
forall. EqLeaf a | forall. EqBranch (EqLeaf a) (EqLeaf a)
class (Eq a) => EqClass a where {
eqc :: {- implicit forall -} a -> Char;
eqc x = '?'
}
type Pair a b = (a, b)
data FooData = FooCon Int
data FooDataB = FooConB Double
data (Eq a) => EqTree a = EqLeaf a | EqBranch (EqLeaf a) (EqLeaf a)
class (Eq a) => EqClass a where { eqc :: a -> Char; eqc x = '?' }
class (Ord a) => OrdClass a where {
orda :: {- implicit forall -} a -> Char;
ordb :: {- implicit forall -} a -> Char;
ordc :: {- implicit forall -} a -> Char;
}
instance {- implicit forall -} (Eq a) => EqClass (EqTree a) where
orda :: a -> Char; ordb :: a -> Char; ordc :: a -> Char; }
instance (Eq a) => {EqClass (EqTree a)} where
[]
eqc x = 'a'
default (Rational, Integer)
...
...
This diff is collapsed.
Click to expand it.
ghc/tests/reader/should_fail/read007.stdout
+
1
−
1
View file @
b799e5ca
==================== Parser ====================
module ShouldFail where
f ::
{- implicit forall -}
Int -> IO Int
f :: Int -> IO Int
f x = do
(2 + 2) <- 2
return x
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment