diff options
Diffstat (limited to 'testsuite/tests/annotations/should_run/Annrun01_Help.hs')
-rw-r--r-- | testsuite/tests/annotations/should_run/Annrun01_Help.hs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/testsuite/tests/annotations/should_run/Annrun01_Help.hs b/testsuite/tests/annotations/should_run/Annrun01_Help.hs new file mode 100644 index 0000000000..c27f85fef6 --- /dev/null +++ b/testsuite/tests/annotations/should_run/Annrun01_Help.hs @@ -0,0 +1,27 @@ +{-# LANGUAGE TemplateHaskell #-} + +module Annrun01_Help where + +{-# ANN module "Module" #-} +{-# ANN module "Annotations" #-} +{-# ANN module (10 :: Int) #-} +{-# ANN module "Rock!!!!" #-} + + +{-# ANN foo "Hello" #-} +{-# ANN foo "World!" #-} +{-# ANN bar 'foo #-} +foo = "Never seen" + +{-# ANN bar "Hello World Again!" #-} +{-# ANN bar (1 :: Int) #-} +{-# ANN bar 'bar #-} +bar = "Also never seen" + +baz = "Especially never seen" + + +{-# ANN type Baz "Type Annotation" #-} +{-# ANN type Baz (Just True) #-} +{-# ANN type Baz ''Baz #-} +data Baz = Spqr
\ No newline at end of file |