verismith-0.5.0.0: Random verilog generation and simulator testing.

Copyright(c) 2018-2019 Yann Herklotz
LicenseBSD-3
Maintaineryann [at] yannherklotz [dot] com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe
LanguageHaskell2010

Verismith.Internal

Contents

Description

Shared high level code used in the other modules internally.

Synopsis

Useful functions

safe :: ([a] -> b) -> [a] -> Maybe b Source #

Converts unsafe list functions in the Prelude to a safe version.

showT :: Show a => a -> Text Source #

Show function for Text

showBS :: ByteString -> Text Source #

Function to show a bytestring in a hex format.

comma :: [Text] -> Text Source #

Inserts commas between '[Text]' and except the last one.

commaNL :: [Text] -> Text Source #

Inserts commas and newlines between '[Text]' and except the last one.