git.iko.soy/rowtype-yoga/purescript-native
on e82e607 help sign in
16 lines 292 B history raw
1module Main where
3class Foo a where
4 foo :: a -> String
6foreign import instance fooArray :: (Foo a) => Foo [a]
8foreign import instance fooNumber :: Foo Number
10foreign import instance fooString :: Foo String
12test1 _ = foo [1, 2, 3]
14test2 _ = foo "Test"
16main = Debug.Trace.trace "Done"