diff options
Diffstat (limited to 'testsuite/tests/printer/Ppr004.hs')
-rw-r--r-- | testsuite/tests/printer/Ppr004.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/testsuite/tests/printer/Ppr004.hs b/testsuite/tests/printer/Ppr004.hs index 797d36106a..2ee72efeb1 100644 --- a/testsuite/tests/printer/Ppr004.hs +++ b/testsuite/tests/printer/Ppr004.hs @@ -2,14 +2,15 @@ {-# LANGUAGE GADTs #-} -- From https://www.haskell.org/haskellwiki/GHC/Type_families#An_associated_data_type_example +module Ppr004 where import qualified Data.IntMap import Prelude hiding (lookup) import Data.Char (ord) class GMapKey k where - data GMap k :: * -> * - empty :: GMap k v + data GMap k :: * -> * + empty :: GMap k v lookup :: k -> GMap k v -> Maybe v insert :: k -> v -> GMap k v -> GMap k v |