MK
Size: a a a
MK
h
import Foo ( Foo.Foo( foo ), Foo.foo)
, как и предлагает компилятор?h
IO
{-# LANGUAGE UndecidableInstances, UndecidableSuperClasses, ConstraintKinds, FlexibleInstances, GADTs, QuantifiedConstraints #-}
class c => Hold c
instance c => Hold c
data Dict c = c => Dict
anythingDict :: Dict c
anythingDict = go
where
go :: (Hold c => c) => Dict c
go = Dict
Rec {
$dHold_rxi :: forall {c :: Constraint}. Hold c
$dHold_rxi = $dHold_rxi
end Rec }
anythingDict :: forall (c :: Constraint). Dict c
anythingDict = \ (@c) -> Dict ($dHold_rxi `cast` <Co:2>)
UndecidableInstances
и UndecidableSuperClasses
говорят что они may result in non-termination of the typechecker, а про нонтерминэйшн в рантайме не говорят.JS
AK
This library is depricated in favor of my subhask library.
к
AK