#5985: Type operators are not accepted as variables in contexts
---------------------------------+------------------------------------------
Reporter: mikhail.vorozhtsov | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.5
Resolution: | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: None/Unknown | Difficulty: Unknown
Testcase: | Blockedby:
Blocking: | Related:
---------------------------------+------------------------------------------
Comment(by diatchki):
Hello,
The equality (~) is a type constructor, not a variable. So, we'd have to
add an exception for that, which would make the language spec (and the
parser) a bit clunky...
If the main use case are categories, perhaps we could change the library
to use the usual math notation `hom` for the set of morphisms between
objects. For example:
{{{
compose :: Category hom => hom a b -> hom b c -> hom a c
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5985#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs