ForSyDe-3.1.1: ForSyDe's Haskell-embedded Domain Specific Language.

Portabilityportable
Stabilityexperimental
Maintainerforsyde-dev@ict.kth.se

ForSyDe.Bit

Description

Bit Datatype. Note that the Num instance is phony and shouldn't be used

Synopsis

Documentation

data Bit Source

Constructors

H

High value

L

Low value

not :: Bit -> BitSource

Not operation over bits

bitToBool :: Bit -> BoolSource

Convert a bit to a boolean

boolToBit :: Bool -> BitSource

Convert a boolean to a bit