Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Synopsis
- type T x y = T (T x y)
- list :: (C x, C y, C a) => T x y a -> [a] -> T x y
- function :: (C x, C y, C a, C b) => T x y (a, b) -> [a] -> (a -> b) -> T x y
- functions :: (C x, C y, C a, C b) => T x y (a, b) -> [a] -> [a -> b] -> T x y
- functionsWithLineSpec :: (C x, C y, C a, C b) => T x y (a, b) -> [a] -> [(T, a -> b)] -> T x y
- parameterFunction :: (C x, C y, C a) => T x y a -> [t] -> (t -> a) -> T x y
- listFromFile :: (C i, C y) => T i y y -> FilePath -> Int -> T i y
- pathFromFile :: (C x, C y) => T x y (x, y) -> FilePath -> Int -> Int -> T x y
- linearScale :: Fractional a => Integer -> (a, a) -> [a]
- functionToGraph :: [x] -> (x -> y) -> [(x, y)]
Documentation
list :: (C x, C y, C a) => T x y a -> [a] -> T x y Source #
list Type.listLines (take 30 (let fibs = 0 : 1 : zipWith (+) fibs (tail fibs) in fibs)) list Type.lines (take 30 (let fibs0 = 0 : fibs1; fibs1 = 1 : zipWith (+) fibs0 fibs1 in zip fibs0 fibs1))
function :: (C x, C y, C a, C b) => T x y (a, b) -> [a] -> (a -> b) -> T x y Source #
function Type.line (linearScale 1000 (-10,10)) sin
functions :: (C x, C y, C a, C b) => T x y (a, b) -> [a] -> [a -> b] -> T x y Source #
functions Type.line (linearScale 1000 (-10,10)) [sin, cos]
functionsWithLineSpec :: (C x, C y, C a, C b) => T x y (a, b) -> [a] -> [(T, a -> b)] -> T x y Source #
functionsWithLineSpec Type.line (linearScale 1000 (-10,10)) $ map (mapFst (flip LineSpec.title LineSpec.deflt)) [("sin", sin), ("cos", cos)]
parameterFunction :: (C x, C y, C a) => T x y a -> [t] -> (t -> a) -> T x y Source #
parameterFunction Type.line (linearScale 1000 (0,2*pi)) (\t -> (sin (2*t), cos t))
linearScale :: Fractional a => Integer -> (a, a) -> [a] Source #
functionToGraph :: [x] -> (x -> y) -> [(x, y)] Source #