fork(1) download
  1. {-# LANGUAGE TypeFamilies #-}
  2. {-# LANGUAGE MultiParamTypeClasses #-}
  3. {-# LANGUAGE ScopedTypeVariables #-}
  4.  
  5. class FooC a b where
  6. type FooE a b
  7. foob :: a -> FooE a b -> b
  8.  
  9. foo :: forall a b. FooC a b => [FooE a b] -> [b]
  10. foo = map (foob (undefined :: a))
  11.  
  12. main :: IO ()
  13. main = undefined
  14.  
Runtime error #stdin #stdout #stderr 0s 6188KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
prog: Prelude.undefined