Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Compiler flags for Haskell #699

@Bubbler-4

Description

@Bubbler-4

A couple of days ago, I tried giving -O GHC option in CW kumite like this:

{-# OPTIONS_GHC -O #-}

But the compiler rejected it, saying that -O is ignored because --interactive is on. (I used it in Preloaded section, and didn't check other sections yet.)

The --interactive flag is usually just for running ghci and (if I'm understanding the GHC docs correctly) not for use in compiled programs. That's pretty lame because GHC's optimization is really good if enabled (it's sometimes said that Haskell is almost on par with C/C++ about performance, at least if properly coded) but we're totally throwing it away and dragging it down to that of common interpreted languages.

That said, can you show us the current GHC command-line options for v8? Let's see what we can change to make it better.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions