Hoogle Search

Within LTS Haskell 24.6 (ghc-9.10.2)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. unsafeUnboundedIntegerCodec :: JSONCodec Integer

    autodocodec Autodocodec

    This is an unsafe (unchecked) version of integerCodec.

  2. unsafeUnboundedNaturalCodec :: JSONCodec Natural

    autodocodec Autodocodec

    This is an unsafe (unchecked) version of naturalCodec.

  3. shownBoundedEnumCodec :: (Show enum, Eq enum, Enum enum, Bounded enum) => JSONCodec enum

    autodocodec Autodocodec.Codec

    A codec for a Bounded Enum that uses its Show instance to have the values correspond to literal Text values.

    Example usage

    >>> data Fruit = Apple | Orange deriving (Show, Eq, Enum, Bounded)
    
    >>> let c = shownBoundedEnumCodec
    
    >>> toJSONVia c Apple
    String "Apple"
    
    >>> JSON.parseMaybe (parseJSONVia c) (String "Orange") :: Maybe Fruit
    Just Orange
    

  4. unsafeUnboundedIntegerCodec :: JSONCodec Integer

    autodocodec Autodocodec.Codec

    This is an unsafe (unchecked) version of integerCodec.

  5. unsafeUnboundedNaturalCodec :: JSONCodec Natural

    autodocodec Autodocodec.Codec

    This is an unsafe (unchecked) version of naturalCodec.

  6. arcLengthBounded :: HasArcLength p => N p -> p -> Interval (N p)

    diagrams-lib Diagrams.Parametric

    arcLengthBounded eps x approximates the arc length of x. The true arc length is guaranteed to lie within the interval returned, which will have a size of at most eps.

  7. getArcLengthBounded :: (Num n, Ord n) => n -> ArcLength n -> Interval n

    diagrams-lib Diagrams.Segment

    Given a specified tolerance, project out the cached arc length if it is accurate enough; otherwise call the generic arc length function with the given tolerance.

  8. integerToBounded :: (Integral a, Bounded a) => Integer -> Maybe a

    relude Relude.Numeric

    Transforms an integer number to a bounded integral. It returns Nothing for integers outside the bound of the return type.

    >>> integerToBounded @Int 42
    Just 42
    
    >>> integerToBounded @Int8 1024
    Nothing
    
    >>> integerToBounded @Int (toInteger (minBound :: Int))
    Just (-9223372036854775808)
    
    >>> integerToBounded @Int $ (toInteger (minBound :: Int)) - 1
    Nothing
    
    >>> integerToBounded @Int (toInteger (maxBound :: Int))
    Just 9223372036854775807
    
    >>> integerToBounded @Int $ (toInteger (maxBound :: Int)) + 1
    Nothing
    
    If you want to convert Int or Word to a bounded type, take a look at toIntegralSized function instead.

  9. simpleUnboundedQDisc :: IO (QDisc t)

    network-transport-tcp Network.Transport.TCP

    A very simple QDisc backed by an unbounded channel.

  10. class PBounded a

    singletons-base Data.Singletons.Base.Enum

    No documentation available.

Page 24 of many | Previous | Next