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

Bulat Ziganshin bulat.ziganshin at gmail.com
Fri Feb 24 13:34:32 EST 2006


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



More information about the Haskell-prime mailing list