probability-0.2.5.1: Probabilistic Functional Programming

Safe HaskellSafe
LanguageHaskell98

Numeric.Probability.Example.Boys

Description

Consider a family of two children. Given that there is a boy in the family, what is the probability that there are two boys in the family?

Documentation

data Child Source #

Constructors

Boy 
Girl 

Instances

Eq Child Source # 

Methods

(==) :: Child -> Child -> Bool #

(/=) :: Child -> Child -> Bool #

Ord Child Source # 

Methods

compare :: Child -> Child -> Ordering #

(<) :: Child -> Child -> Bool #

(<=) :: Child -> Child -> Bool #

(>) :: Child -> Child -> Bool #

(>=) :: Child -> Child -> Bool #

max :: Child -> Child -> Child #

min :: Child -> Child -> Child #

Show Child Source # 

Methods

showsPrec :: Int -> Child -> ShowS #

show :: Child -> String #

showList :: [Child] -> ShowS #