Prelude> ([1::Int] ++ [2::Int]) :: Double
<interactive>:2:2:
Couldn't match expected type ‘Double’ with actual type ‘[Int]’
In the expression: ([1 :: Int] ++ [2 :: Int]) :: Double
In an equation for ‘it’: it = ([1 :: Int] ++ [2 :: Int]) :: Double
正
Prelude> ([1::Int] ++ [2::Int]) :: [Double]
<interactive>:2:3:
Couldn't match expected type ‘Double’ with actual type ‘Int’
In the expression: 1 :: Int
In the first argument of ‘(++)’, namely ‘[1 :: Int]’
In the expression: ([1 :: Int] ++ [2 :: Int]) :: [Double]