diff options
Diffstat (limited to 'testsuite/tests/ghc-api/annotations/Test10399.hs')
-rw-r--r-- | testsuite/tests/ghc-api/annotations/Test10399.hs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/testsuite/tests/ghc-api/annotations/Test10399.hs b/testsuite/tests/ghc-api/annotations/Test10399.hs new file mode 100644 index 0000000000..b4e06d3c1f --- /dev/null +++ b/testsuite/tests/ghc-api/annotations/Test10399.hs @@ -0,0 +1,18 @@ +{-# LANGUAGE ImplicitParams #-} +{-# LANGUAGE TemplateHaskell #-} +{-# LANGUAGE QuasiQuotes #-} +{-# LANGUAGE ScopedTypeVariables #-} +module Test10399 where + +type MPI = ?mpi_secret :: MPISecret + +mkPoli = mkBila . map ((,,(),,()) <$> P.base <*> P.pos <*> P.form) + +data MaybeDefault v where + SetTo :: forall v . ( Eq v, Show v ) => !v -> MaybeDefault v + SetTo4 :: forall v a. (( Eq v, Show v ) => v -> MaybeDefault v + -> a -> MaybeDefault [a]) + +[t| Map.Map T.Text $tc |] + +bar $( [p| x |] ) = x |