#4416: Quasiquoting without bloating
---------------------------------+------------------------------------------
Reporter: rrnewton | Owner:
Type: feature request | Status: new
Priority: normal | Component: Compiler
Version: 6.13 | Keywords:
Testcase: | Blockedby:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Quasiquoting is a compile-time feature, and sometimes can be useful for
purposes as modest as multiline strings (see Hackage packages such as
interpolatedstring-perl6).
However, I found that using quasiquoting would add about twelve megabytes
to final executable size (on 6.12.1 and 6.13.20090607). It seems GHC
links all of the libraries used at compile time into the final executable
as well. Could GHC prune these?
Note: you can reproduce this effect with a simple hello world program like
below:
{{{
import Text.InterpolatedString.Perl6 (q)
foo :: String
foo = [$q|
Well here is a
multi-line string!
|]
main = putStrLn foo
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4416>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs