summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/should_fail/T17244C.hs
blob: e77ff39b61671c2cfa7e6c8a2d1a83e97ba06e9e (plain)
1
2
3
4
5
6
7
8
9
10
11
{-# OPTIONS_GHC -Wcompat-unqualified-imports #-}

module T17244C (hello) where

-- This should not warn with -Wcompat-unqualified-imports.
-- But not his fails, as sum name clashes with Prelude
import Data.List (sum)

hello :: [Int] -> Int
hello = sum