How to use type constrains with Exists
问题 data Foo a = Foo a I can create an array of Exists https://github.com/purescript/purescript-exists [(mkExists (Foo 0)), (mkExists (Foo "x"))] How can I use type classes? I want to get ["0", "x"] getStrings :: Array (Exists Foo) -> Array String getStrings list = map (runExists get) list where get :: forall a. Show a => Foo a -> String get (Foo a) = show a No type class instance was found for Prelude.Show _0 The instance head contains unknown type variables. Consider adding a type annotation.