clash-prelude-hedgehog-1.7.0: Hedgehog Generators for clash-prelude
Copyright(C) 2021-2022 QBayLogic B.V.
LicenseBSD2 (see the file LICENSE)
MaintainerQBayLogic B.V. <devops@qbaylogic.com>
Safe HaskellNone
LanguageHaskell2010

Clash.Hedgehog.Sized.Signed

Description

Random generation of Signed numbers.

Documentation

genSigned :: (MonadGen m, KnownNat n) => Range (Signed n) -> m (Signed n) Source #

data SomeSigned atLeast where Source #

Constructors

SomeSigned :: SNat n -> Signed (atLeast + n) -> SomeSigned atLeast 

Instances

Instances details
KnownNat atLeast => Show (SomeSigned atLeast) Source # 
Instance details

Defined in Clash.Hedgehog.Sized.Signed

Methods

showsPrec :: Int -> SomeSigned atLeast -> ShowS #

show :: SomeSigned atLeast -> String #

showList :: [SomeSigned atLeast] -> ShowS #

genSomeSigned :: (MonadGen m, KnownNat atLeast) => Range Natural -> m (SomeSigned atLeast) Source #