Constraint synonym with Implicit Parameter
This:
{-# LANGUAGE ConstraintKinds, ImplicitParams #-}
module Foo where
type Foo = ?foo::()
gives
Foo.hs:3:1: error:
• Illegal implicit parameter ‘?foo::()’
• In the type synonym declaration for ‘Foo’
in GHC HEAD. It used to work in GHC-7.10. Did not check GHC-8.0.
Trac metadata
Trac field | Value |
---|---|
Version | 8.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler (Type checker) |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |