[GHC] #5141: syntax error in pretty-printed kind ascriptions
GHC
cvs-ghc at haskell.org
Wed Apr 20 18:40:41 CEST 2011
#5141: syntax error in pretty-printed kind ascriptions
------------------------------------------------+---------------------------
Reporter: megacz | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 7.0.3
Resolution: fixed | Keywords:
Testcase: | Blockedby:
Difficulty: | Os: Unknown/Multiple
Blocking: | Architecture: Unknown/Multiple
Failure: Incorrect warning at compile-time |
------------------------------------------------+---------------------------
Comment(by megacz):
I like Sebastian's example too (I have been considering rewriting
GArrow.hs using (~>) for a while now).
Are "tycon symols" usable as datacons too? I'm a bit fuzzy on how the
namespaces work; GHC's NameSpace.lhs considers the datacon namespace to be
disjoint from the tycon namespace, and also considers the tyvar namespace
to be disjoint from the variable-name namespace. But most users seem to
think of "the capitalized-word namespace" and "the uncapitalized-word
namespace".
I ask because it would be nice to be able to use symbols as associated
types:
{{{
class Category g => GArrow g where
data (**) :: * -> * -> *
-- ...
}}}
So would -XSymbolsAreTyCons (or whatever it will be called) allow the
program above?
Thanks,
- a
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5141#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list