Get information about a functional application of an application

In GHCI

you can get information about all kinds of things like

Prelude> :i map
map :: (a -> b) -> [a] -> [b]   -- Defined in `GHC.Base'
Prelude> :i (+)
class Num a where
  (+) :: a -> a -> a
  ...
        -- Defined in `GHC.Num'
infixl 6 +
Prelude> :i :
data [] a = ... | a : [a]       -- Defined in `GHC.Types'
infixr 5 :

      

I read something like "functional application has the highest priority" which means

f "hello" * g 'w'

      

equivalent to

(f "hello") * (g 'w')

      

Can I get information about a function app? Is this the actual operator?

Does not work

Prelude> :i ( )

<interactive>:1:2: error:
    parse error (possibly incorrect indentation or mismatched brackets)
Prelude>

      

+3
operators haskell ghci


source to share


No one has answered this question yet

Check out similar questions:

8499
What is the "->" operator in C ++?
5670
Which operator is equal (== vs ===) should be used in JavaScript comparisons?
5504
Does Python have a ternary conditional operator?
4270
Link. What does this symbol mean in PHP?
3486
Why Java + =, - =, * =, / = do not require casting assignment operators?
2743
What is it!! (not) operator in JavaScript?
1994
What are the basic rules and idioms for operator overloading?
1455
What does C ??! ??! operator?
1302
What are bit-shift (bit-shift) operators and how do they work?
1077
Does JavaScript have a null coalescing operator?



All Articles
Loading...
X
Show
Funny
Dev
Pics