Hoogle Search
Within LTS Haskell 24.31 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
clash-prelude Clash.Prelude Like fromList, but resets on reset and has a defined reset value.
>>> let rst = unsafeFromActiveHigh (fromList [True, True, False, False, True, False]) >>> let res = withReset rst (fromListWithReset Nothing [Just 'a', Just 'b', Just 'c']) >>> sampleN @System 6 res [Nothing,Nothing,Just 'a',Just 'b',Nothing,Just 'a']
NB: This function is not synthesizable fromList_lazy :: forall a (dom :: Domain) . [a] -> Signal dom aclash-prelude Clash.Prelude Create a Signal from a list Every element in the list will correspond to a value of the signal for one clock cycle.
>>> sampleN 2 (fromList [1,2,3,4,5] :: Signal System Int) [1,2]
NB: This function is not synthesizable-
clash-prelude Clash.Signal Like fromList, but resets on reset and has a defined reset value.
>>> let rst = unsafeFromActiveHigh (fromList [True, True, False, False, True, False]) >>> let res = withReset rst (fromListWithReset Nothing [Just 'a', Just 'b', Just 'c']) >>> sampleN @System 6 res [Nothing,Nothing,Just 'a',Just 'b',Nothing,Just 'a']
NB: This function is not synthesizable fromList_lazy :: forall a (dom :: Domain) . [a] -> Signal dom aclash-prelude Clash.Signal Create a Signal from a list Every element in the list will correspond to a value of the signal for one clock cycle.
>>> sampleN 2 (fromList [1,2,3,4,5] :: Signal System Int) [1,2]
NB: This function is not synthesizablefromList_lazy :: forall a (dom :: Domain) . [a] -> Signal dom aclash-prelude Clash.Signal.Internal Create a Signal from a list Every element in the list will correspond to a value of the signal for one clock cycle.
>>> sampleN 2 (fromList [1,2,3,4,5] :: Signal System Int) [1,2]
NB: This function is not synthesizablefromList' :: IndexedListLiterals input length output => [output] -> inputindexed-list-literals Data.IndexedListLiterals a partial fromList with bad error messages
-
indexed-list-literals Data.IndexedListLiterals the fromList variants take a list and convert it into a tuple it's sort of the inverse of toList
> fromListP (len @3) [1,2,3] Just (1,2,3)
> fromListP (len @3) ["word","up"] Nothing
> fromListP (len @1) ['z'] Just (Only 'z') @
fromListBindEnv :: [(BindId, (Symbol, SortedReft, a))] -> BindEnv aliquid-fixpoint Language.Fixpoint.Types.Environments No documentation available.
fromListIBindEnv :: [BindId] -> IBindEnvliquid-fixpoint Language.Fixpoint.Types.Environments No documentation available.
fromListSEnv :: [(Symbol, a)] -> SEnv aliquid-fixpoint Language.Fixpoint.Types.Environments No documentation available.