Export more types in GHC.RTS.Flags
There are some ADTs in GHC.RTS.Flags
that have arguments whose types are not exported. These types are:
-
GiveGCStats
(found inGCFlags
) -
DoCostCentres
(found inCCFlags
) -
DoHeapProfile
(found inProfFlags
) -
DoTrace
(found inTraceFlags
)
This makes it pretty difficult to do anything useful with them, since they can't be pattern-matched.
In addition, there are some unexported type synonyms:
type Time = Word64
-
type Nat = #{type unsigned int}
(likely aWord32
)
The Haddock docs for GHC.RTS.Flags
don't give much of an indication of what Time
and Nat
are, and since they're already documented in the source, they should probably be exported.
Trac metadata
Trac field | Value |
---|---|
Version | 7.10.1-rc1 |
Type | FeatureRequest |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | libraries/base |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | ekmett, hvr |
Operating system | |
Architecture |