-fno-code?
Simon Peyton-Jones
simonpj at microsoft.com
Fri Aug 19 03:47:02 EDT 2005
Ah... a mistake we re-jigging the top-level driver stuff recently. I've
just fixed it.
If you want to add -ftypecheck-only or -fonly-typecheck, then by all
means do so. Is suggest you do it by adding an extra constructor to
HscTarget. Currently it has HscNothing to mean "omit code generation",
but you could replace that with HscTypecheck and HscNoCode.
This'll be useful for Visual Haskell too. Indeed Simon and Krasimir may
have something like that already (perhaps not yet merged in). I'm not
sure. Simon's on paternity leave, but he'll be online occasionally.
Simon
| -----Original Message-----
| From: cvs-all-bounces at haskell.org [mailto:cvs-all-bounces at haskell.org]
On Behalf Of Donald Bruce
| Stewart
| Sent: 19 August 2005 02:59
| To: cvs-ghc at haskell.org
| Subject: -fno-code?
|
| Hey,
|
| Did -fno-code get disabled?
|
| hs-plugins uses -fno-code to run the type checker at runtime (rather
than
| sending objects into /dev/null). Come to think of it, a -ftypecheck,
returning
| ExitFailure or Success would be neat. Would anyone object to me coding
this up?
|
| head:
| paprika$ ghc-6.5 -v2 -fno-code T.hs
| Glasgow Haskell Compiler, Version 6.5, for Haskell 98, compiled by
GHC version 6.2.2
| Using package config file: /home/dons/lib/ghc-6.5/package.conf
| *** Deleting temp files
| -> ghc-6.5: unrecognised flags: -fno-code
| Usage: For basic information, try the `--help' option.
|
| Looking in cvs, I see it is still in Main.hs?
|
| stable works:
| paprika$ ghc-6.4.1 -v2 -fno-code T.hs
| Glasgow Haskell Compiler, Version 6.4.1, for Haskell 98, compiled
by GHC version 6.5
| Using package config file: /home/dons/lib/ghc-6.4.1/package.conf
| *** Checking old interface for Main:
| *** Parser:
| *** Renamer/typechecker:
| *** Desugar:
| Result size = 11
| *** Simplify:
| Result size = 9
| Result size = 9
| *** Tidy Core:
| Result size = 9
| *** CorePrep:
| Result size = 9
| *** Stg2Stg:
| *** CodeGen:
| *** CodeOutput:
| *** Deleting temp files
|
| -- Don
| _______________________________________________
| Cvs-ghc mailing list
| Cvs-ghc at haskell.org
| http://www.haskell.org/mailman/listinfo/cvs-ghc
More information about the Cvs-ghc
mailing list