packages feed

fay-0.4.0.4: docs/snippets/data.hs

data Math = Math
  { root :: Double -> Double
  , square :: Double -> Double
  , cube :: Double -> Double
  }

math = Math sqrt
            (\x -> x * x)
            (\x -> x * square math x)

rootroot = root math (root math 5)