diff options
Diffstat (limited to 'testsuite/tests/parser/should_compile/read018.hs')
-rw-r--r-- | testsuite/tests/parser/should_compile/read018.hs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/tests/parser/should_compile/read018.hs b/testsuite/tests/parser/should_compile/read018.hs new file mode 100644 index 0000000000..91eef518be --- /dev/null +++ b/testsuite/tests/parser/should_compile/read018.hs @@ -0,0 +1,17 @@ +{-# LANGUAGE DatatypeContexts #-} +-- !!! Checking that empty contexts are permitted. +module ShouldCompile where + +data () => Foo a = Foo a + +newtype () => Bar = Bar Int + +f :: () => Int -> Int +f = (+1) + + +class () => Fob a where + +instance () => Fob Int where +instance () => Fob Float + |