verismith-1.1.0: Random verilog generation and simulator testing.
Copyright(c) 2018-2023 Yann Herklotz
LicenseGPL-3
Maintaineryann [at] yannherklotz [dot] com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageHaskell2010

Verismith.Utils

Description

 
Synopsis

Documentation

nonEmpty :: b -> (NonEmpty a -> b) -> [a] -> b Source #

foldrMap1 :: (a -> b) -> (a -> b -> b) -> NonEmpty a -> b Source #

foldrMap1' :: b -> (a -> b) -> (a -> b -> b) -> [a] -> b Source #

foldrMapM1 :: (Applicative m, Monad m) => (a -> m b) -> (a -> b -> m b) -> NonEmpty a -> m b Source #

mkpair :: Applicative f => f a -> f b -> f (a, b) Source #

uncurry3 :: (a -> b -> c -> d) -> (a, b, c) -> d Source #

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.