summaryrefslogtreecommitdiff
path: root/testsuite/tests/ffi
diff options
context:
space:
mode:
authorAustin Seipp <aseipp@pobox.com>2013-09-08 09:02:04 -0500
committerAustin Seipp <aseipp@pobox.com>2013-09-08 09:30:10 -0500
commit0b1bea4360d730ae4c91092bc94bc541631dbc84 (patch)
treed87feed052483dccadd73a158ec386955be25707 /testsuite/tests/ffi
parent8859e1e3e4e6c695a4e9a1659fc0ec935141324a (diff)
downloadhaskell-0b1bea4360d730ae4c91092bc94bc541631dbc84.tar.gz
Fix most AMP warnings.
Authored-by: David Luposchainsky <dluposchainsky@gmail.com> Signed-off-by: Austin Seipp <aseipp@pobox.com>
Diffstat (limited to 'testsuite/tests/ffi')
-rw-r--r--testsuite/tests/ffi/should_compile/ffi-deriv1.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuite/tests/ffi/should_compile/ffi-deriv1.hs b/testsuite/tests/ffi/should_compile/ffi-deriv1.hs
index 94d0df2fa4..1e5d27a0b6 100644
--- a/testsuite/tests/ffi/should_compile/ffi-deriv1.hs
+++ b/testsuite/tests/ffi/should_compile/ffi-deriv1.hs
@@ -1,4 +1,4 @@
-{-# LANGUAGE GeneralizedNewtypeDeriving #-}
+{-# LANGUAGE GeneralizedNewtypeDeriving #-}
-- Tests newtype unwrapping for the IO monad itself
-- Notice the RenderM monad, which is used in the
@@ -6,8 +6,10 @@
module ShouldCompile where
+import Control.Applicative (Applicative)
+
import Foreign.Ptr
-newtype RenderM a = RenderM (IO a) deriving (Functor, Monad)
+newtype RenderM a = RenderM (IO a) deriving (Functor, Applicative, Monad)
type RenderCallback = Int -> Int -> RenderM ()