Hoogle Search

Within LTS Haskell 24.40 (ghc-9.10.3)

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

  1. lastMay :: forall (n :: Nat) a . NList n a -> Maybe a

    indexed-containers Data.NList

    The last element of a list.

    lastMay (empty :: NList 0 Int) === Nothing
    lastMay (mk3 'a' 'b' 'c') === Just 'c'
    

  2. intCastMaybe :: (Integral a, Integral b, Bits a, Bits b) => a -> Maybe b

    int-cast Data.IntCast

    Run-time-checked integer conversion This is an optimized version of the following generic code below

    intCastMaybeRef :: (Integral a, Integral b) => a -> Maybe b
    intCastMaybeRef x
    | toInteger x == toInteger y = Just y
    | otherwise                  = Nothing
    where
    y = fromIntegral x
    
    The code above is rather inefficient as it needs to go via the Integer type. The function intCastMaybe, however, is marked INLINEABLE and if both integral types are statically known, GHC will be able optimize the code signficantly (for -O1 and better). For instance (as of GHC 7.8.1) the following definitions
    w16_to_i32 = intCastMaybe :: Word16 -> Maybe Int32
    
    i16_to_w16 = intCastMaybe :: Int16 -> Maybe Word16
    
    are translated into the following (simplified) GHC Core language
    w16_to_i32 = \x -> Just (case x of _ { W16# x# -> I32# (word2Int# x#) })
    
    i16_to_w16 = \x -> case eta of _
    { I16# b1 -> case tagToEnum# (<=# 0 b1) of _
    { False -> Nothing
    ; True -> Just (W16# (narrow16Word# (int2Word# b1)))
    }
    }
    
    Note: Starting with base-4.8, this function has been added to Data.Bits under the name toIntegralSized.

  3. moveToSTM :: Key -> Region -> STM Key

    io-region Control.IO.Region

    Move resource to other region. The old key becomes invalid and should not be used

  4. requestMethod :: ToRequest q => q -> Method

    json-rpc Network.JSONRPC

    Method associated with request data to build a request object.

  5. module Keter.HostManager

    No documentation available.

  6. data HostManager

    keter Keter.HostManager

    No documentation available.

  7. ascHostManager :: AppStartConfig -> !HostManager

    keter Keter.SharedData.App

    No documentation available.

  8. getLatestMavenArchives :: String -> String -> Maybe Int -> Bool -> IO Value

    koji Distribution.Koji.API

    getLatestMavenArchives(tag, event=None, inherit=True)

  9. listModules :: LB [String]

    lambdabot-core Lambdabot.Monad

    No documentation available.

  10. getANTI_ESCSTM :: L Token -> String

    language-c-quote Language.C.Parser.Parser

    No documentation available.

Page 190 of many | Previous | Next