[GHC] #15008: Type synonyms with hidden, determined type variables
GHC
ghc-devs at haskell.org
Fri Apr 6 21:34:28 UTC 2018
#15008: Type synonyms with hidden, determined type variables
-------------------------------------+-------------------------------------
Reporter: nomeata | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Research
| needed
Component: Compiler | Version: 8.5
Resolution: | Keywords:
| QuantifiedConstraints, wipT2893
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by nomeata):
Oh, but now you are using `type`, not a `class`/`instance` pair. Does the
`type` work just fine?
If that works (with quantified constraints), then I’d be happy, as user,
to write
{{{
type MyMonad m = (forall r. (MonadReader r m, Show r))
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15008#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list