copilot-language-4.8: A Haskell-embedded DSL for monitoring hard real-time distributed systems.

Safe Haskell | Safe
Language | Haskell2010

Copilot.Language.Operators.Integral

Description

Integral class operators applied point-wise on streams.

Synopsis

- div :: (Typed a, Integral a) => Stream a -> Stream a -> Stream a
- mod :: (Typed a, Integral a) => Stream a -> Stream a -> Stream a
- (^) :: (Typed a, Typed b, Num a, Bits a, Integral b) => Stream a -> Stream b -> Stream a

# Documentation

div :: (Typed a, Integral a) => Stream a -> Stream a -> Stream a Source #

Apply the `div` operation to two streams, point-wise.

mod :: (Typed a, Integral a) => Stream a -> Stream a -> Stream a Source #

Apply the `mod` operation to two streams, point-wise.

(^) :: (Typed a, Typed b, Num a, Bits a, Integral b) => Stream a -> Stream b -> Stream a Source #

Apply a limited form of exponentiation (`^`) to two streams, point-wise.

Either the first stream must be the constant 2, or the second must be a constant stream.