copilot-language-3.2.1: A Haskell-embedded DSL for monitoring hard real-time distributed systems.
Safe HaskellSafe
LanguageHaskell2010

Copilot.Language.Operators.Integral

Description

Integral class operators applied point-wise on streams.

Synopsis

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.