ForSyDe-3.0: ForSyDe's Haskell-embedded Domain Specific Language.Source codeContentsIndex
ForSyDe.Bit
Portabilityportable
Stabilityexperimental
Maintainerforsyde-dev@ict.kth.se
Description
Bit Datatype. Note that the Num instance is phony and shouldn't be used
Synopsis
data Bit
= H
| L
not :: Bit -> Bit
bitToBool :: Bit -> Bool
boolToBit :: Bool -> Bit
toBitVector8 :: Int8 -> FSVec D8 Bit
fromBitVector8 :: FSVec D8 Bit -> Int8
toBitVector16 :: Int16 -> FSVec D16 Bit
fromBitVector16 :: FSVec D16 Bit -> Int16
toBitVector32 :: Int32 -> FSVec D32 Bit
fromBitVector32 :: FSVec D32 Bit -> Int32
toBitVector64 :: Int64 -> FSVec D64 Bit
fromBitVector64 :: FSVec D64 Bit -> Int64
Documentation
data Bit Source
Constructors
HHigh value
LLow value
show/hide Instances
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
toBitVector8 :: Int8 -> FSVec D8 BitSource
fromBitVector8 :: FSVec D8 Bit -> Int8Source
toBitVector16 :: Int16 -> FSVec D16 BitSource
fromBitVector16 :: FSVec D16 Bit -> Int16Source
toBitVector32 :: Int32 -> FSVec D32 BitSource
fromBitVector32 :: FSVec D32 Bit -> Int32Source
toBitVector64 :: Int64 -> FSVec D64 BitSource
fromBitVector64 :: FSVec D64 Bit -> Int64Source
Produced by Haddock version 2.1.0