Recall how you request ghci for a function type:
:t read :t show
About the operator:
You enter :t + ?
No, you get a parsing error.
You do :t (+) .
As for your case, you will hide it with extra brackets: ((*))
import Prelude hiding ((*)) (*) :: Int -> Int -> Int x * 0 = 0 x * y = x + x*(y-1)
Wentao
source share