[Haskell-cafe] help with Haskell programming

Thomas Davie tom.davie at gmail.com
Sun Apr 18 11:39:31 EDT 2010


I'm not certain exactly what you mean, but I *think* you mean:

func :: (a -> Bool) -> (a -> Bool)
func = (not .)

Bob

On 18 Apr 2010, at 16:35, Mujtaba Boori wrote:

> Hello I am kinda newbie in Haskell you can help help me with some programming
> 
> I am trying to make function like for example 
> 
> func :: (a -> Bool) -> (a -> Bool)
> 
> this function make calculation  and return bool . I want to be able to make bool True when It is False and False when it is True while returning the a. 
> 
> Thank you 
> 
> -- 
> Mujtaba Ali Alboori
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe



More information about the Haskell-Cafe mailing list