Permalink
Browse files

empty context (i.e. '()') on instances

  • Loading branch information...
1 parent f3c07f9 commit 6f1216f334c2a9951e370f22423c407b5a6ab7ed @atzedijkstra atzedijkstra committed Jul 30, 2012
Showing with 14 additions and 0 deletions.
  1. +14 −0 EHC/test/regress/99/InstanceCtxt1.hs
@@ -0,0 +1,14 @@
+{- ----------------------------------------------------------------------------------------
+ what : empty context on instance, parsing of it
+ expected: ok
+---------------------------------------------------------------------------------------- -}
+
+module InstanceCtxt1 where
+
+class Foo a where
+ foo :: a -> Int
+
+instance () => Foo Int where
+ foo = undefined
+
+main = return ()

0 comments on commit 6f1216f

Please sign in to comment.