diff options
author | Simon Hengel <sol@typeful.net> | 2012-10-15 20:32:03 +0200 |
---|---|---|
committer | Simon Hengel <sol@typeful.net> | 2012-10-15 20:49:39 +0200 |
commit | 7e1fed4da8bb913d25f447afd1f1e485d428e37f (patch) | |
tree | 179a79201d11df7b27583f083d884753b1ee82e4 /html-test/src/SpuriousSuperclassConstraints.hs | |
parent | a4fb9cb0a44101d858d69281a3ee0aa0dbf7ddda (diff) |
Move source files for HTML tests to html-test/src
Diffstat (limited to 'html-test/src/SpuriousSuperclassConstraints.hs')
-rw-r--r-- | html-test/src/SpuriousSuperclassConstraints.hs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/html-test/src/SpuriousSuperclassConstraints.hs b/html-test/src/SpuriousSuperclassConstraints.hs new file mode 100644 index 00000000..d9e43e1c --- /dev/null +++ b/html-test/src/SpuriousSuperclassConstraints.hs @@ -0,0 +1,30 @@ +{-# LANGUAGE EmptyDataDecls, KindSignatures #-} +-- | +-- What is tested here: +-- +-- Due to a change in GHC 7.6.1 we had a bug that superclass contraints were +-- included in the instances list. Edward K. repported it here: +-- +-- <http://www.haskell.org/pipermail/haskell-cafe/2012-September/103600.html> +-- +-- And here is the corresponding theard on glasgow-haskell-users: +-- +-- <http://www.haskell.org/pipermail/glasgow-haskell-users/2012-September/022914.html> +-- +-- It has been fixed in: +-- +-- > 6ccf78e15a525282fef61bc4f58a279aa9c21771 +-- > Fix spurious superclass constraints bug. +-- +module SpuriousSuperclassConstraints where + +import Control.Applicative + +data SomeType (f :: * -> *) a + +instance Functor (SomeType f) where + fmap = undefined + +instance Applicative f => Applicative (SomeType f) where + pure = undefined + (<*>) = undefined |