diff options
Diffstat (limited to 'html-test/src')
| -rw-r--r-- | html-test/src/Bug188.hs | 7 | ||||
| -rw-r--r-- | html-test/src/BugDeprecated.hs | 14 | ||||
| -rw-r--r-- | html-test/src/Minimal.hs | 25 | 
3 files changed, 37 insertions, 9 deletions
| diff --git a/html-test/src/Bug188.hs b/html-test/src/Bug188.hs new file mode 100644 index 00000000..15089699 --- /dev/null +++ b/html-test/src/Bug188.hs @@ -0,0 +1,7 @@ +-- Tests that the listed order of functions grouped under a single +-- type signature is preserved as in-source. Before fixing #188, it +-- seems to have preserved the first function but reversed the rest. +module Bug188 where + +class A a where +  f, g, h, i :: a -> () diff --git a/html-test/src/BugDeprecated.hs b/html-test/src/BugDeprecated.hs index 0f7ac2eb..7741786f 100644 --- a/html-test/src/BugDeprecated.hs +++ b/html-test/src/BugDeprecated.hs @@ -1,17 +1,25 @@  module BugDeprecated where -foo, bar, baz :: Int +foo :: Int  foo = 23 + +bar :: Int  bar = 23 + +baz :: Int  baz = 23  {-# DEPRECATED foo "for foo" #-}  {-# DEPRECATED bar "for bar" #-}  {-# DEPRECATED baz "for baz" #-} --- | some documentation for one, two and three -one, two, three :: Int +-- | some documentation for one +one :: Int  one = 23 + +two :: Int  two = 23 + +three :: Int  three = 23  {-# DEPRECATED one "for one" #-}  {-# DEPRECATED two "for two" #-} diff --git a/html-test/src/Minimal.hs b/html-test/src/Minimal.hs index cd2df930..9df03cca 100644 --- a/html-test/src/Minimal.hs +++ b/html-test/src/Minimal.hs @@ -10,7 +10,9 @@ module Minimal  class Foo a where    -- | Any two of these are required... -  foo, bar, bat :: a +  foo :: a +  bar :: a +  bat :: a    -- | .. or just this    fooBarBat :: (a,a,a) @@ -18,23 +20,34 @@ class Foo a where    {-# MINIMAL (foo, bar) | (bar, bat) | (foo, bat) | fooBarBat #-}  class Weird a where -  a,b,c,d,e,f,g :: a +  a :: a +  b :: a +  c :: a +  d :: a +  e :: a +  f :: a +  g :: a    {-# MINIMAL ((a, b), c | (d | (e, (f | g)))) #-}  class NoMins a where -  x,y,z :: a +  x :: a +  y :: a +  z :: a    -- | Has a default implementation!    z = x  class FullMin a where -  aaa,bbb :: a +  aaa :: a +  bbb :: a  class PartialMin a where -  ccc,ddd :: a +  ccc :: a +  ddd :: a  class EmptyMin a where -  eee,fff :: a +  eee :: a +  fff :: a    eee = fff    fff = undefined | 
