public/private module sections (was: Haskell-prime Digest, Vol 2, Issue 58)

Jared Updike jupdike at gmail.com
Fri Feb 24 14:07:56 EST 2006


And this

public foldr            :: (a -> b -> b) -> b -> [a] -> b
public foldr f z []     =  z
public foldr f z (x:xs) =  f x (foldr f z xs)

or is it

public foldr            :: (a -> b -> b) -> b -> [a] -> b
foldr f z []     =  z
foldr f z (x:xs) =  f x (foldr f z xs)

and now things aren't lined up.

  Jared.

On 2/24/06, Bulat Ziganshin <bulat.ziganshin at gmail.com> wrote:
> Hello Claus,
>
> Friday, February 24, 2006, 7:53:09 PM, you wrote:
>
> CR> public class C a
> CR>     where
> CR>         public m1 :: a
> CR>         private m2 :: a -> String
>
> please don't stop on this!
>
> public map (private f) (public (private x:public xs)) =
>   private (public f (private x))
>   `public :`
>   private map (public f) (private xs)
>
>
> --
> Best regards,
>  Bulat                            mailto:Bulat.Ziganshin at gmail.com
>
> _______________________________________________
> Haskell-prime mailing list
> Haskell-prime at haskell.org
> http://haskell.org/mailman/listinfo/haskell-prime
>


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


More information about the Haskell-prime mailing list