Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Data.Bool.Linear
Contents
Description
This module provides linear functions on the standard Bool
type.
The Boolean type
Instances
NFData Bool | |||||
Defined in Control.DeepSeq | |||||
Bounded Bool | Since: base-2.1 | ||||
Enum Bool | Since: base-2.1 | ||||
Storable Bool | Since: base-2.1 | ||||
Defined in GHC.Internal.Foreign.Storable | |||||
Generic Bool | |||||
Defined in GHC.Internal.Generics | |||||
SingKind Bool | Since: base-4.9.0.0 | ||||
Defined in GHC.Internal.Generics Associated Types
| |||||
Read Bool | Since: base-2.1 | ||||
Show Bool | Since: base-2.1 | ||||
Eq Bool | |||||
Ord Bool | |||||
Hashable Bool | |||||
Defined in Data.Hashable.Class | |||||
Eq Bool Source # | |||||
Ord Bool Source # | |||||
Consumable Bool Source # | |||||
Defined in Data.Unrestricted.Linear.Internal.Consumable | |||||
Dupable Bool Source # | |||||
Movable Bool Source # | |||||
Uniform Bool | |||||
Defined in System.Random.Internal Methods uniformM :: StatefulGen g m => g -> m Bool # | |||||
UniformRange Bool | |||||
Defined in System.Random.Internal | |||||
Unbox Bool | |||||
Defined in Data.Vector.Unboxed.Base | |||||
SingI 'False | Since: base-4.9.0.0 | ||||
Defined in GHC.Internal.Generics | |||||
SingI 'True | Since: base-4.9.0.0 | ||||
Defined in GHC.Internal.Generics | |||||
Lift Bool | |||||
Vector Vector Bool | |||||
Defined in Data.Vector.Unboxed.Base Methods basicUnsafeFreeze :: Mutable Vector s Bool -> ST s (Vector Bool) basicUnsafeThaw :: Vector Bool -> ST s (Mutable Vector s Bool) basicLength :: Vector Bool -> Int basicUnsafeSlice :: Int -> Int -> Vector Bool -> Vector Bool basicUnsafeIndexM :: Vector Bool -> Int -> Box Bool basicUnsafeCopy :: Mutable Vector s Bool -> Vector Bool -> ST s () | |||||
MVector MVector Bool | |||||
Defined in Data.Vector.Unboxed.Base Methods basicLength :: MVector s Bool -> Int basicUnsafeSlice :: Int -> Int -> MVector s Bool -> MVector s Bool basicOverlaps :: MVector s Bool -> MVector s Bool -> Bool basicUnsafeNew :: Int -> ST s (MVector s Bool) basicInitialize :: MVector s Bool -> ST s () basicUnsafeReplicate :: Int -> Bool -> ST s (MVector s Bool) basicUnsafeRead :: MVector s Bool -> Int -> ST s Bool basicUnsafeWrite :: MVector s Bool -> Int -> Bool -> ST s () basicClear :: MVector s Bool -> ST s () basicSet :: MVector s Bool -> Bool -> ST s () basicUnsafeCopy :: MVector s Bool -> MVector s Bool -> ST s () basicUnsafeMove :: MVector s Bool -> MVector s Bool -> ST s () basicUnsafeGrow :: MVector s Bool -> Int -> ST s (MVector s Bool) | |||||
type DemoteRep Bool | |||||
Defined in GHC.Internal.Generics | |||||
type Rep Bool | Since: base-4.6.0.0 | ||||
data Sing (a :: Bool) | |||||
type Rep Bool | |||||
newtype Vector Bool | |||||
Defined in Data.Vector.Unboxed.Base | |||||
newtype MVector s Bool | |||||
Defined in Data.Vector.Unboxed.Base |
Operators
(&&) :: Bool %1 -> Bool %1 -> Bool infixr 3 Source #
True
iff both are True
.
NOTE: this is strict and not lazy!