diff options
author | simonpj <unknown> | 1997-01-17 00:33:30 +0000 |
---|---|---|
committer | simonpj <unknown> | 1997-01-17 00:33:30 +0000 |
commit | fa44695e06cf83d8bcef2c826cb6b39d6ffc49c0 (patch) | |
tree | 791759ad31e5b0331ef810e4f38ae0dbbb6250f6 /ghc/compiler/parser/syntax.c | |
parent | e640627ab0c1e8fe40b8df42f4adddfc1e4685ec (diff) | |
download | haskell-fa44695e06cf83d8bcef2c826cb6b39d6ffc49c0.tar.gz |
[project @ 1997-01-17 00:32:23 by simonpj]
Cross module worker-wrappers
Diffstat (limited to 'ghc/compiler/parser/syntax.c')
-rw-r--r-- | ghc/compiler/parser/syntax.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/ghc/compiler/parser/syntax.c b/ghc/compiler/parser/syntax.c index fec0ae8278..509145360a 100644 --- a/ghc/compiler/parser/syntax.c +++ b/ghc/compiler/parser/syntax.c @@ -543,18 +543,19 @@ splittyconapp(app, tyc, tys) qid *tyc; list *tys; { - if(tttype(app) == tapp) - { + switch (tttype(app)) { + case tapp: splittyconapp(gtapp((struct Stapp *)app), tyc, tys); *tys = lapp(*tys, gtarg((struct Stapp *)app)); - } - else if(tttype(app) == tname) - { + break; + + case tname: + case namedtvar: *tyc = gtypeid((struct Stname *)app); *tys = Lnil; - } - else - { + break; + + default: hsperror("panic: splittyconap: bad tycon application (no tycon)"); } } |