aelve / haskell-issues

An unofficial issue tracker for all things Haskell-related
18 stars 0 forks source link

ghc/lambdabot: Minimize :t token length using aliases #28

Open Gurkenglas opened 8 years ago

Gurkenglas commented 8 years ago

For example, :t _Left would give Prism (Either a c) (Either b c) a b instead of (Applicative f, Choice p) => p a (f b) -> p (Either a c) (f (Either b c)). This would also help in making errors readable.

It could even return a DAG of specialized types such that the specialized types can be length-minimized further - for example, :t _Left could also give Prism' (Either a b) a.