diff options
Diffstat (limited to 'latex-test/src/GadtConstructorArgs')
| -rw-r--r-- | latex-test/src/GadtConstructorArgs/GadtConstructorArgs.hs | 13 | 
1 files changed, 13 insertions, 0 deletions
| diff --git a/latex-test/src/GadtConstructorArgs/GadtConstructorArgs.hs b/latex-test/src/GadtConstructorArgs/GadtConstructorArgs.hs new file mode 100644 index 00000000..79ffb4d3 --- /dev/null +++ b/latex-test/src/GadtConstructorArgs/GadtConstructorArgs.hs @@ -0,0 +1,13 @@ +{-# LANGUAGE GADTs, PatternSynonyms #-} + +module GadtConstructorArgs (Boo(..)) where + +data Boo where +  Fot :: { x :: Int  -- ^ an 'x' +         , y :: Int  -- ^ a 'y' +         } -> Boo + +  -- | Record GADT with docs +  Fob :: { w :: Int  -- ^ a 'w' +         , z :: Int  -- ^ a 'z' +         } -> Boo    -- ^ a 'Boo' | 
