Skip to content

Language.Haskell.TH doesn't reexport everything from Language.Haskell.TH.Lib

The documentation for Language.Haskell.TH.Lib claims:

-- All of the exports from this module should
-- be "public" functions.  The main module TH
-- re-exports them all.

Sadly, this isn't true. There are a number of functions that Language.Haskell.TH accidentally forgets to export. Notably, this includes all of the unboxed tuple library functions, as noticed here, but there are many others as well.

To avoid this sort of thing in the future, I think the cleanest solution would be to just reexport the entirely of the Language.Haskell.TH.Lib module from Language.Haskell.TH. This would have the downside that you'll have to click an extra link in order to see the Haddocks for Language.Haskell.TH.Lib, but I believe the simplification will be worth it.

Trac metadata
Trac field Value
Version 8.0.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Template Haskell
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information