[GHC] #12086: Allow omitting type family signature
GHC
ghc-devs at haskell.org
Thu May 19 19:51:36 UTC 2016
#12086: Allow omitting type family signature
-------------------------------------+-------------------------------------
Reporter: Iceland_jack | Owner:
Type: feature | Status: new
request |
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.1
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: None/Unknown
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
Syntactic issue.
I find myself writing
{{{#!hs
type family
Not a where
Not False = True
Not True = False
}}}
quite often, where the signature can be inferred it would be nice to be
able to write ... to mean the same thing
{{{#!hs
type family
Not False = True
Not True = False
}}}
I know Richard has
[https://www.reddit.com/r/haskell/comments/4amov2/the_future_of_dependent_haskell/d14xtjs
a lot of things planned], I don't know how they mesh together
----
The desugaring is straightforward, for a type family with n-indexes, add a
signature with n fresh type variables.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12086>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list