Skip to content

Commit

Permalink
Tweak tcrun043 to test constraint tuple codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
batterseapower committed Sep 9, 2011
1 parent e807408 commit c37e9c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/typecheck/should_run/tcrun043.hs
Expand Up @@ -24,6 +24,9 @@ g Fish x = Right (x + 1)


type TwoConstraints a = (Show a, Num a) type TwoConstraints a = (Show a, Num a)


-- We'll NOINLINE h so that we test the code generation for
-- constraint tuples
{-# NOINLINE h #-}
h :: TwoConstraints a => a -> String h :: TwoConstraints a => a -> String
h x = show (x + 1) h x = show (x + 1)


Expand Down

0 comments on commit c37e9c7

Please sign in to comment.