Is there a standard Haskell function that adds an extra parameter to the function

I have a function a->b that needs to be passed to the signature (c->a->b) . I don't care that c just ignores it. Is there a standard function that adds useless parameters: (a->b) -> (c->a->b) ?

+6
source share
1 answer

It is called const :

 > let foo = const :: (a -> b) -> (c -> a -> b) 
+12
source

All Articles