Hoogle Search
Within LTS Haskell 24.35 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
opaleye Opaleye.Experimental.Enum No documentation available.
enumToFields :: EnumMapper sqlEnum haskellSum -> ToFields haskellSum (Field sqlEnum)opaleye Opaleye.Experimental.Enum No documentation available.
enumToInt :: WireEnum a => a -> Int32protobuf-simple Data.ProtoBufInt Convert a enum value to an Int32.
enumToInt :: WireEnum a => a -> Int32protobuf-simple Data.ProtoBufInt Convert a enum value to an Int32.
enum8toWord8 :: Enum8 -> Word8rainbow Rainbow.Types No documentation available.
enumerate :: forall (f :: Type -> Type) . (Enumerable a, Typeable f, Sized f) => Shared f asize-based Control.Enumerable No documentation available.
-
streamly Streamly.Internal.Data.Stream.IsStream enumerate = enumerateFrom minBound
Enumerate a Bounded type from its minBound to maxBound -
streamly Streamly.Internal.Data.Stream.IsStream enumerate = enumerateFrom minBound
Enumerate a Bounded type from its minBound to maxBound enumerateFrom :: forall t (m :: Type -> Type) . (Enumerable a, IsStream t, Monad m) => a -> t m astreamly Streamly.Internal.Data.Stream.IsStream enumerateFrom from generates a stream starting with the element from, enumerating up to maxBound when the type is Bounded or generating an infinite stream when the type is not Bounded.
>>> Stream.toList $ Stream.take 4 $ Stream.enumerateFrom (0 :: Int) [0,1,2,3]
For Fractional types, enumeration is numerically stable. However, no overflow or underflow checks are performed.>>> Stream.toList $ Stream.take 4 $ Stream.enumerateFrom 1.1 [1.1,2.1,3.1,4.1]
enumerateFrom :: forall t (m :: Type -> Type) . (Enumerable a, IsStream t, Monad m) => a -> t m astreamly Streamly.Internal.Data.Stream.IsStream enumerateFrom from generates a stream starting with the element from, enumerating up to maxBound when the type is Bounded or generating an infinite stream when the type is not Bounded.
>>> Stream.toList $ Stream.take 4 $ Stream.enumerateFrom (0 :: Int) [0,1,2,3]
For Fractional types, enumeration is numerically stable. However, no overflow or underflow checks are performed.>>> Stream.toList $ Stream.take 4 $ Stream.enumerateFrom 1.1 [1.1,2.1,3.1,4.1]