[GHC] #2135: Warn if functions are exported whose types cannot be
written
GHC
trac at galois.com
Tue Mar 4 17:59:43 EST 2008
#2135: Warn if functions are exported whose types cannot be written
--------------------------------+-------------------------------------------
Reporter: dons | Owner:
Type: feature request | Status: new
Priority: normal | Component: Compiler
Version: 6.8.2 | Severity: normal
Keywords: warnings | Testcase:
Architecture: Unknown | Os: Unknown
--------------------------------+-------------------------------------------
It should be possible to warn if a function is exported from a module
whose type is hidden, and thus the function's type can't be written down
directly by the user.
With the proliferation in type level programming in Haskell (and its use
in libraries), situations
can arise where functions are exported from a module which can be used,
but whose type cannote be written, but where the type is complex enough
that it really is required to write it down for the code to compile. This
happened recently in the takusen library.
A warning for this situation would help authors of libraries avoid this
situation.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2135>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list