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

Clash.Hedgehog.Core.Literal

Description

Random type-directed generation of literals.

Synopsis

Documentation

genLiteralFrom Source #

Arguments

:: forall m. MonadGen m 
=> Type

The type of the literal to generate

-> m Literal 

Generate a Literal with the specified core type. If the type does not correspond to a known PrimTyCon (as defined in Clash.Core.TysPrim) then an error is returned.