summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/should_compile/rn058.hs
blob: 838f58b1c74b29dc1b02f74714829949332cc285 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{-# LANGUAGE ForeignFunctionInterface #-}
{-# OPTIONS_GHC -fwarn-unused-imports #-}

-- Trac #1386
-- We do not want a warning about unused imports

module Foo () where

import Control.Monad (liftM)

foo :: IO ()
foo = id `liftM` return ()

foreign export ccall "hs_foo" foo :: IO ()