[Haskell-cafe] Type of a function?

Jared Updike jupdike at gmail.com
Fri Jul 14 19:34:45 EDT 2006


Did you try putting this in a file, say,   t.hs    and running
   ghci  t.hs

then typing

   :type func

at the GHCi prompt? It should tell you the function type.

  Jared.

On 7/14/06, Jenny678 <mestor1 at gmx.de> wrote:
>
> Hallo
>
> Can somebody tell me the type of  the following function?
>
> func :: ?????????????
> func f x = (z,y)
>   where (z,y) = f x
>
> Thanks
> --
> View this message in context: http://www.nabble.com/Type-of-a-function--tf1945843.html#a5335607
> Sent from the Haskell - Haskell-Cafe forum at Nabble.com.
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>


-- 
http://www.updike.org/~jared/
reverse ")-:"


More information about the Haskell-Cafe mailing list