vty/test/Verify/Graphics/Vty/Prelude.hs

28 lines
580 B
Haskell
Raw Normal View History

2017-01-22 20:22:15 +03:00
module Verify.Graphics.Vty.Prelude
( module Verify.Graphics.Vty.Prelude
, module Graphics.Vty.Prelude
, MockWindow(..)
)
where
2013-12-20 10:24:56 +04:00
import Graphics.Vty.Prelude
import Graphics.Vty.Debug
import Verify
data EmptyWindow = EmptyWindow MockWindow
instance Arbitrary EmptyWindow where
arbitrary = return $ EmptyWindow (MockWindow (0 :: Int) (0 :: Int))
instance Show EmptyWindow where
show (EmptyWindow _) = "EmptyWindow"
instance Arbitrary MockWindow where
arbitrary = do
w <- choose (1,1024)
h <- choose (1,1024)
return $ MockWindow w h